??????????????????? PHP 5.3 ?????汾????? PHP ?汾??????£????????????????????????????????????μ?汾??
???????????? PHP The Right Way????????°?????????????????????????????????????????????????

????1. PSR
????The idea behind the group is for project representatives to talk about the commonalities between our projects and find ways we can work together.
?????????????????????????????????????????? PSR??PHP Standard Recommendation???????????? PSR ??????Щ?淶??????????????????飬????????????
????PSR ?????б??????? php-fig (PHP Framework Interop Group)?????????飬??????????Щ?????????????????????? Laravel??Symfony??Yii????
?????????????????????????????????????????????????????????Щ?????????????Э????????????????????Щ??????????????????????
????PSR ?????????? 6 ???????
????0?????????????????? PHP 5.3 ??????????????汾??
????1??????淶
????2???????????
????3??Log ???
????4???????????????????????????к?????
????7??HTTP ??????
????????????Draft???е???? PSR-5(PHPDoc Standard)??PSR-6(Cache)???5 ?? 6 ??г???????????б??У??????????????????
???????????????????????£???????о???Щ??????????????????????δ????????????
????Nobody in the group wants to tell you?? as a programmer?? how to build your application.
????2. Composer
????Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.
????composer ?? Pear??Pecl ???????????????????????????????????????????????? PHP ????????????????????????? node.js ?? npm??Python ?? pip ????????????????
????composer ???????????????????????????????????? packagist.org ???????????????????????????????????????????? PHP ???????????? composer ???????????y?????????????? autoload.php ????????ɡ?
????composer ????? spl_autoload_register ?????????????????????????????????????????????м? composer ?????????????
???????????? PHP ??????????? include ?? require ?????????д????????????? PHP 5.3 ?????????????????????????????ɡ????? composer ????? PSR-4??????汾?? PHP ???? PSR-0???????use ???????? spl_autoload_register ????????????????????????????д???????? Python ?? import??????????????????????????????á?
????3. php-cs-fixer
????The PHP Coding Standards Fixer tool fixes most issues in your code when you want to follow the PHP coding standards as defined in the PSR-1 and PSR-2 documents.
????????????????????? PSR-1 ?? PSR-2 ??淶????????????????Щ???????????? Symfony ??淶??
?????????????????????????????????????????????ж??????? .php_cs ????????????棬????????????????????
????????????https://github.com/FriendsOfPHP/PHP-CS-Fixer
???????????ú????÷?????????????????н????????????????????????FriendsOfPHP?????????????????? Symfony ????С?
??????????????t??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????