DEV Community

Discussion on: How to create a PHP package for Composer

Collapse
 
whoisryosuke profile image
Ryosuke

Using Composer allows you to leverage PSR-4 autoloading. You use it by adding an autoload property to the composer.json with your app or package's namespace.

Check out this guide on PHP namespaces for more info