"The Age of Composer eminence has come!" 』
--Bai
"An era has come to an end, another time has begun." ”
The Framework interoperability Group (frame Interoperability Group), referred to as FIG, was founded in 2009. The FIG was originally initiated by several well-known PHP framework developers, and after absorbing many excellent brains and strong physique, it presented the PSR-0 to PSR-4 five sets of PHP unofficial specifications:
1. PSR-0 (autoloading Standard) automatic loading standard
2. PSR-1 (Basic coding Standard) Basic coding Standard
3. PSR-2 (Coding style Guide) Coding Style Wizard
4. PSR-3 (Logger Interface) Log interface
5. PSR-4 (improved autoloading) automatic loading optimization standard
Then, above this standard, composer turned out! Composer constructs a thriving PHP ecosystem using the namespaces of PSR-0 and PSR-4 and PHP5.3. Composer similar to the famous NPM and RubyGems, provides an exceptionally convenient collaboration channel for massive PHP packages, Composer Hub address: https://packagist.org/. Composer Chinese website: http://www.phpcomposer.com/.
The current Laravel and Symfony in the PHP world are directly based on Composer, we are familiar with the well-known framework CI and the development version of Yii CodeIgniter 3 and Yii 2 are also based on Composer (update: Beijing time 2014 1 13th Yii 2 has been released). Composer is the future of the PHP framework, and with it, the routing of CI and the eloquent ORM collaboration of Laravel will become very simple.
PHP language itself with powerful network features, file management functions and rich system api,composer is just a PHP script. can use
PHP Composer.phar Update
Called directly.
Create a new folder in the right place, named MFFC (My-based on Composer), and create a new file under the folder Composer.json:
{' Require ': {}}
The command line switches to the MFFC directory and runs:
Composer Update
Wait a moment, the following files and folders will appear:
If the above content is successful, congratulations, Composer initialization success!