Why is it difficult to learn why many frameworks are installed with Composer?
Source: Internet
Author: User
Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time, this site also provides a large number of online instances, through which you can better learn programming... Reply: Is PHP simple to learn? Hard?
It's hard not to use composer, but to accept new things.
Use dependency management and automatic loading.
Once you have used composer, you can no longer leave it.
JavaScript has npm
Java has Maven
Python3.4 and later integrated pip directly.
What about PHP? That is composer.
Using composer is as simple as ordering unless you have a selective syndrome. Composer is a new dependency management tool in the PHP field. When I first came to understand Composer, I had a sense of mutual sorrow.
PHP can also use pear and pecl for dependency management. The former is to manage the PHP library, and the latter is to manage PHP extensions. In some cases, it is also very convenient. I especially like to use pecl to install PHP extensions.
The advantage of Composer is that you only need to provide a composer. json file and declare the required third-party library. a simple command can install all the dependencies. It is also convenient for project deployment and release, because only one composer. json is required.
The disadvantage is the lack of direct support for some static resources (such as js and css), which may be related to positioning.
Of course, Composer not only relies on management tools, but also supports automatic loading. This involves the PSR-0 specification of the php-fig organization. If you are interested, visit its official website: PHP-FIG-PHP Framework Interop Group
.
Learning difficulty is limited, but convenience is unlimited! Depends on management tools, things required by large projects
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.