Reader small image

You're reading from  Mastering PHP 7

Product typeBook
Published inJun 2017
Reading LevelIntermediate
PublisherPackt
ISBN-139781785882814
Edition1st Edition
Languages
Right arrow
Author (1)
Branko Ajzele
Branko Ajzele
author image
Branko Ajzele

Branko Ajzele is a respected and highly accomplished software developer, book author, solution specialist, consultant, and team leader. He currently works for Interactive Web Solutions Ltd (iWeb), where he holds the role of senior developer and is the director of iWeb's Croatia office. Branko holds several respected IT certifications, including Zend Certified PHP Engineer, Magento Certified Developer, Magento Certified Developer Plus, Magento Certified Solution Specialist, Magento 2 Certified Solution Specialist, Magento 2 Certified Professional Developer, to mention just a few. He was crowned the e-commerce Developer of the Year by the Digital Entrepreneur Awards in October 2014 for his excellent knowledge and expertise in e-commerce development.
Read more about Branko Ajzele

Right arrow

PSR-4 - autoloading standard


To this date, the PHP-FIG group has released two autoloading standards. Predating PSR-4 was PSR-0. It was the first standard released by the PHP-FIG group. Its class naming had certain backward compatibility features aligned with an even older PEAR standard. Whereas, each level of the hierarchy was separated with a single underscore, indicating pseudo-namespaces and directory structure. The PHP 5.3 release then brought official namespace support to the language. PSR-0 allowed both the old PEAR underscore mode and the use of the new namespace notation. Allowing the underscores for some time to follow eased the transition to namespaces and encouraged wider adoption. Pretty soon, Composer came on the scene.

Note

Composer is a popular dependency manager for PHP that deals with packages and libraries by installing them in a vendor/ directory of our project.

With Composer's vendor/ directory philosophy, there was no single main directory for PHP sources as with PEAR....

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering PHP 7
Published in: Jun 2017Publisher: PacktISBN-13: 9781785882814

Author (1)

author image
Branko Ajzele

Branko Ajzele is a respected and highly accomplished software developer, book author, solution specialist, consultant, and team leader. He currently works for Interactive Web Solutions Ltd (iWeb), where he holds the role of senior developer and is the director of iWeb's Croatia office. Branko holds several respected IT certifications, including Zend Certified PHP Engineer, Magento Certified Developer, Magento Certified Developer Plus, Magento Certified Solution Specialist, Magento 2 Certified Solution Specialist, Magento 2 Certified Professional Developer, to mention just a few. He was crowned the e-commerce Developer of the Year by the Digital Entrepreneur Awards in October 2014 for his excellent knowledge and expertise in e-commerce development.
Read more about Branko Ajzele