What is composer software?
composer software is a tool used by PHP to manage dependency relationships. You can declare the external libraries (libraries) you depend on in your project, and Composer will install these dependent library files for you.
To put it bluntly, it is actually a tool that can help us manage dependencies. We only need to follow a certain format to declare which libraries, versions, etc. the project depends on (create a composer.json file), and Composer can find out which version of the package needs to be installed and install them.
Composer has two methods: local installation and global installation. Partial installation is to install it into the project working directory, and the user uses commands such as php composer.phar to operate. I use global installation here to facilitate use when building other projects in the future.
p.s. It should be noted that Composer requires PHP 5.3.2 to run. Children's shoes whose PHP version is lower than 5.3.2 should upgrade quickly. Now that PHP 7.0.0 RC 1 is out, is it too primitive to still use PHP 5.3 or below? Bloggers now use PHP 5.6.10.
Morecomposer tutorialFor detailed introduction, please refer to: //m.sbmmt.com/tool/composer/
The above is the detailed content of what is composer software. For more information, please follow other related articles on the PHP Chinese website!