Home  >  Article  >  Development Tools  >  what does composer do

what does composer do

藏色散人
藏色散人Original
2019-08-10 09:12:297042browse

what does composer do

What does composer do?

composer is a tool used in PHP to manage dependencies. You can declare the external libraries (libraries) you depend on in your project, and Composer will install these dependent library files for you.

Recommended: [composer tutorial]

The advantage of Composer is that you only need to provide a composer.json file to declare the third-party libraries that need to be used. A simple command All its dependencies can be installed. It is also convenient for project deployment and release, because you only need to provide a composer.json.

The current disadvantage is the lack of direct support for some static resources (such as js, css), which may be related to its positioning.

Of course, Composer is not only a dependency management tool, but also provides automatic loading support. This involves the PSR-0 specification of the php-fig organization. If you are interested, please visit its official website: PHP-FIG — PHP Framework Interop Group.

Simply put, composer is a package version control tool.

Composer is a dependency management tool for PHP. It allows you to declare code libraries that your project depends on and it will install them for you in your project.

The above is the detailed content of what does composer do. 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