The standard package name format for a composer package is vendor/pkName
.
I've this following directory structure:
- myVendorName
- extensions
- yii2
-Ext1
-Ext2 and so on
- bundles
- bundle1
- bundle2
- bundle3 and so on
- toolkit
- forlder1
- folder2 and so on
This is the organization that I gave in my harddisk, but the real projects are like:
- myVendorName/extensions/yii2/ext1
- myVendorName/extensions/yii2/ext2
- myVendorName/bundles/bundle1
- myVendorName/bundles/bundle2
- myVendorName/bundles/bundle3
- myVendorName/toolkit
My questions about this:
It's possible to store all in one git repository and require with composer only the needed subpackages (for example: require only
myVendorName/toolkit
andmyVendorName/bundles/bundle3
)It's possible to maintain the extended name format with composer (so in
composer.json
require section, require formyVendorName/bundles/bundle3
instead ofmyVendorName/bundle3
)
Is there a way to achieve these 2 points?