Hamilton Turner 7064c542d6 Merge pull request #1148 from gerardroche/zf2-fix-db-multi 10 years ago
..
cakephp ef391492fe Update Cake to use Redis instead of APC # Please enter the commit message for your changes. Lines starting 11 years ago
hhvm 04c4772776 Update to PHP 5.5.17 11 years ago
php 902ed0e127 Merge pull request #1028 from roman-tsiupa-sociomantic/patch-1 11 years ago
php-codeigniter 04c4772776 Update to PHP 5.5.17 11 years ago
php-fatfree 04c4772776 Update to PHP 5.5.17 11 years ago
php-fuel 04c4772776 Update to PHP 5.5.17 11 years ago
php-kohana 3ac5e82a49 Change PHP-kohana over to PDO because of deprecation 11 years ago
php-laravel 04c4772776 Update to PHP 5.5.17 11 years ago
php-lithium 04c4772776 Update to PHP 5.5.17 11 years ago
php-micromvc 04c4772776 Update to PHP 5.5.17 11 years ago
php-phalcon 04c4772776 Update to PHP 5.5.17 11 years ago
php-phalcon-micro 04c4772776 Update to PHP 5.5.17 11 years ago
php-phpixie 04c4772776 Update to PHP 5.5.17 11 years ago
php-pimf 04c4772776 Update to PHP 5.5.17 11 years ago
php-senthot 04c4772776 Update to PHP 5.5.17 11 years ago
php-silex 04c4772776 Update to PHP 5.5.17 11 years ago
php-silex-orm 597d0950ae Update silex-orm to use Redis instead of APC 11 years ago
php-silica 04c4772776 Update to PHP 5.5.17 11 years ago
php-slim 04c4772776 Update to PHP 5.5.17 11 years ago
php-symfony2 031fca6e13 Update symfony2 with Redis instead of APC 11 years ago
php-symfony2-stripped 04c4772776 Update to PHP 5.5.17 11 years ago
php-yaf 04c4772776 Update to PHP 5.5.17 11 years ago
php-yii2 04c4772776 Update to PHP 5.5.17 11 years ago
php-zend-framework 202ab37d9e Fix zend framework 2 db multi queries should default to min/max 1/500 10 years ago
php-zend-framework1 65dc752fb9 Add bash_profile script 10 years ago
phreeze 04c4772776 Update to PHP 5.5.17 11 years ago
README.md 9ddae9f92b Update php readme 11 years ago

README.md

Tricks to writing PHP-based Frameworks

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 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 to the php-fpm binary that cakephp wants, and then uses sudo $PHP_FPM to ensure that the php-fpm binary used by sudo is the exact binary desired.

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"