[PHP] Composer entry-level practice it is necessary to mention with many beginners that the development trend of Web is getting closer and closer to integration and automation. The reason why Node. js is so popular is that npm has a great deal of credit and has played a very convenient and efficient development form for developers. Therefore, PHP also came into being Composer for dependency management. Therefore, whether you want to become a professional PHP engineer or "work in harmony" with other teammates in your future Team, please master it!
Introduction
What is Composer? Composer is a PHP dependency management tool. what is a dependency management tool? It is a new standard. you can use it to manage the libraries and plug-ins to be loaded in a framework project. define the required resource package in the json file and use the composer command to automatically download and deploy the package.
Composer can be seen as a PHP package manager, similar to Python's easy_install and pip, Ruby's gem, Node. js's npm, and is a powerful ecosystem.
For popular PHP development frameworks such as Yii and Laravel, we recommend using Composer to install the framework locally. it is also mainly used for project resource management during local development.
Install on Mac
Basic usage
Chinese document
Example of loading Silex Microframework and Tesseract-ocr php:
References
- Composer uses five tips
- Composer
- Install Composer on Mac