Introduction to
composer
composer is a dependency management tool for PHP. It is not a package manager. It allows developers to declare the code libraries that the project depends on, and it will install them in the project.
Why use composer
Consider the following scenario
If a project is developed by yourself alone, you know exactly what libraries need to be introduced. At this time, if a new colleague joins the project to develop together, you tell him to introduce it Which library? At this time, you may encounter problems such as inconsistent version libraries, inconsistent storage locations, inconvenient introduction of dependent libraries, etc. If the project continues to increase manpower and the project needs to be spread to other members, the above problems will be encountered repeatedly when introducing dependent libraries.
composer very well solves the problems in the above scenarios. When developing a project, you only need to declare the things that the project depends on. composer will find out which version of the package needs to be installed and download them to the project middle.
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });The above introduces the composer introductory tutorial - first introduction to composer1, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.