(The difference between psr-0 and psr-4 in composer) is not the same as (the difference between the psr-0 specification and the PSR-4 specification)?

Source: Internet
Author: User
Keywords composer php
Title, I'm a little confused, who can say it carefully:
1, the difference between psr-0 and psr-4 in composer;
2, the difference between the psr-0 norm and the psr-4 norm;
3, composer and Php-fig, who indulge who.

Reply content:

Title, I'm a little confused, who can say it carefully:
1, the difference between psr-0 and psr-4 in composer;
2, the difference between the psr-0 norm and the psr-4 norm;
3, composer and Php-fig, who indulge who.

is actually a naming specification and automatic loading (autoload) of a standard, specifically can see the official homepage of Php-fig, there are detailed provisions and examples

Composer in the psr-0 and Psr-4 is said that the two norms, not because in the composer is not the same. Composer can be understood as the Yum,mac brew of CentOS, composer is a dependency management tool for PHP. About the composer automatic loading mechanism, you can look at my column: Laravel study notes composer automatic loading, I hope to help you.

  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.