I want to require only a sub portion of a git repository (instead of the full thing). The reason i want to do this is because the repository is huge.
In my case the repository is: https://github.com/pubnub/pubnub-api.git and I only want the /php directory.
I have the following package defined in composer:
{ "type": "package", "package": { "name": "pubnub", "version": "dev-master", "source" : { "url": "https://github.com/pubnub/pubnub-api.git", "type": "git", "reference":"master" } } }, Any tips?
php. You will still end up with all of the history using git clone (as I guess that Composer does behind the scenes).