Re:Ask HN: PHP Directory structure and code organization
by krapp on Monday October 27, 2014 @11:50AM
(#8516211)
Organizing around Composer[0] may be what you want. It's extremely flexible in terms of the kinds of packages it can load, implements PSR-0 and PSR-4 and allows custom autoloading, and binding scripts to pre and post installs.
[0]https://getcomposer.org