I'm searching a way to separate an active composer package with many Symfony bundles in.
Currently the package have one global composer.json file in the root directory and its looking like that.
Package
src/DIRECTORY_WITH_MULTIPLE_SYMFONY_BUNDLES
composer.json
I want to make every bundle with a separate composer.json file, so I can require only the bundles I need, not the whole package.
I don't want to publish the package through Packagist and want to only load it directly from my repo, to be something like
"repositories": {
"composer": {
"type": "composer",
"url": "https://packagist.org"
},
"mypackagerepo": {
"type": "path",
"url": "https://github.com/PATH_TO_MY_PACKAGE_REPO"
}
}
and then to require the bundles I need from the directory like this
"require": {
"bundle1": "~1.8.1",
"bundle2": "~2.18.2"
}