In the next lines, I will try to explain how to make a PHP package following some recommended rules. Then I’ll show you how to host the recently created library at Packagist.

For that task, I will go with a real use case. I want to have Doctrine DBAL running out of the box inside Antidot Framework applications. Furthermore, I want someone with the same requirement to have the chance to download and use it in its project.

#php

How to Craft a PHP package
2.55 GEEK