I made an example Zend Framework 2 API application which uses a custom module stored in a separate git repository, as a proof of concept for using private repositories for common modules retrieved via composer.

Source