Working with Packages
Modern PHP applications tend to be comprised of a large number of files. Take the Magento 2 eCommerce platform as an example. Once installed, its vendor directory contains over thirty thousand of the PHP class files. The sheer size of it is enough to stunt anyone. Why so many files, one might wonder? Nowadays, it is popular, if not mandatory, to make use of preexisting libraries and packages other developers have written before us. It would not make much sense to reinvent the wheel all the time. This is why package managers such as Composer are ever so popular among the PHP developers. Making use of these package managers usually means pulling in a diverse set of third-party packages into our project. While this usually ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access