Hamilton Turner 55bbea0e83 Merge branch 'master' of https://github.com/F3Community/FrameworkBenchmarks into php-1054 11 gadi atpakaļ
..
cakephp a6e74857ec Fix cakephp PATH handling 11 gadi atpakaļ
hhvm 23d7cbb0b7 HHVM typo 11 gadi atpakaļ
php 7d777ee841 Cleanup basic PHP 11 gadi atpakaļ
php-codeigniter b9f7248722 Cleanup codeigniter 11 gadi atpakaļ
php-fatfree 55bbea0e83 Merge branch 'master' of https://github.com/F3Community/FrameworkBenchmarks into php-1054 11 gadi atpakaļ
php-fuel 1a55c3933b Cleanup php-fuel 11 gadi atpakaļ
php-kohana e279bc581f Cleanup php-kohana 11 gadi atpakaļ
php-laravel 9e89f4215e Cleanup php-laravel 11 gadi atpakaļ
php-lithium ef2fcd4449 Cleanup php-lithium 11 gadi atpakaļ
php-micromvc 1913b5079c Cleanup php-micromvc 11 gadi atpakaļ
php-phalcon 5740008f61 Cleanup php-phalcon 11 gadi atpakaļ
php-phalcon-micro b5b550654e Cleanup phalcon 11 gadi atpakaļ
php-phpixie a79d547828 Add PHP Composer to multiple frameworks 11 gadi atpakaļ
php-pimf a79d547828 Add PHP Composer to multiple frameworks 11 gadi atpakaļ
php-senthot 5b6b4b74e8 Cleanup php-senthot 11 gadi atpakaļ
php-silex a79d547828 Add PHP Composer to multiple frameworks 11 gadi atpakaļ
php-silex-orm bd773e3d49 Cleanup php-silex-orm 11 gadi atpakaļ
php-silica 92daf77689 Cleanup php-silica 11 gadi atpakaļ
php-slim b9c3fc2c5c Cleanup php-slim 11 gadi atpakaļ
php-symfony2 c44e265d26 Cleanup php-symfony2 11 gadi atpakaļ
php-symfony2-stripped 8679bacf66 Cleanup php-symfony2 11 gadi atpakaļ
php-yaf 1f68b22f4d Cleanup php-yaf 11 gadi atpakaļ
php-yii2 4a9dfc6fb4 Cleanup php-yii2 11 gadi atpakaļ
php-zend-framework 63dfbdfaee Cleanup php-zend-framework 11 gadi atpakaļ
phreeze cb0018ac99 Cleanup phreeze 11 gadi atpakaļ
README.md 9ddae9f92b Update php readme 11 gadi atpakaļ

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"