Home  >  Article  >  Development Tools  >  What does composer mean?

What does composer mean?

藏色散人
藏色散人Original
2019-08-30 13:41:265112browse

What does composer mean?

Composer is a tool used in PHP to manage dependencies. You can declare the external tool libraries you depend on in your project, and Composer will install these dependent library files for you. You can easily use one command to reference other people's excellent code into the required project.

What does composer mean?

Composer

Composer was proposed and implemented by Nils Adermann and Jordi Boggiano. The first version was released on March 1, 2012. version.

Composer 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.

Composer can run on Windows, Linux and OSX platforms.

composer resolves project dependencies and implements automatic loading. Developers only need a few command lines to obtain other developers' packages, so PHP development work becomes like stacking blocks, and the combined code can be quickly and easily disassembled according to business needs.

Running Composer requires PHP 5.3.2 or above. Some sensitive PHP settings and compilation flags are also required, but the installer will throw a warning for any incompatibilities.

We will install directly from the source of the package, rather than simply downloading the zip file, you will need git , svn or hg , depending on the version management system you are loading the package into.

It involves "packages" and "libraries", but it is managed on a per-project basis, installing in a directory within your project (e.g. vendor). By default it won't install anything globally. So this is just a dependency management.

For more technical articles on composer usage, please visit the composer usage tutorial column!

The above is the detailed content of What does composer mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn