浏览代码

Update php readme

Hamilton Turner 11 年之前
父节点
当前提交
9ddae9f92b
共有 1 个文件被更改,包括 9 次插入2 次删除
  1. 9 2
      frameworks/PHP/README.md

+ 9 - 2
frameworks/PHP/README.md

@@ -2,7 +2,7 @@
 
 
 Many servers use the `php`, `php-fpm`, or other binaries. If your
 Many servers use the `php`, `php-fpm`, or other binaries. If your
 server launches with `sudo` (e.g. `sudo php-fpm`) then you should be 
 server launches with `sudo` (e.g. `sudo php-fpm`) then you should be 
-aware that sudo resets the `$PATH` environment variable, and your 
+aware that using sudo resets the `$PATH` environment variable, and your 
 specific binary may not be the one being used. The solution is to 
 specific binary may not be the one being used. The solution is to 
 always use `sudo <full-path-to-my-binary>`. For example, `cakephp`'s
 always use `sudo <full-path-to-my-binary>`. For example, `cakephp`'s
 `bash_profile.sh` sets the variable `$PHP_FPM` to be the full path 
 `bash_profile.sh` sets the variable `$PHP_FPM` to be the full path 
@@ -12,4 +12,11 @@ desired.
 
 
 # Dependency Management
 # Dependency Management
 
 
-Many PHP apps use https://getcomposer.org/ for dependency management.
+Many PHP apps use https://getcomposer.org/ for dependency management.
+To support this, use `fw_depends php composer` (note that order is 
+important, composer requires php and therefore should be listed after
+PHP), and then add `$IROOT/php-composer` to the `PATH` in your `bash_profile.sh`. 
+For example: 
+
+    export COMPOSER_HOME=${IROOT}/php-composer
+    export PATH="$COMPOSER_HOME:$PATH"