Browse Source

Update php readme

Hamilton Turner 11 years ago
parent
commit
9ddae9f92b
1 changed files with 9 additions and 2 deletions
  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
 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 
 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 
@@ -12,4 +12,11 @@ desired.
 
 # 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"