I am using Composer for a project that should handle some dependencies, but I have a really strange problem. The composer ignores the composer.json file contained in the child packages.
My project should receive some custom mail packages, in these packages the composer.json file defines other requirements. Repositories of these requirements are declared in the root composer.json file, because Composer cannot recursively retrieve repositories.
The fact is that after my zip package is downloaded, unpacked and placed in the supplier’s directory, the composer completely ignores his composer.json, where other requirements are defined ...
The mail archive looks something like this:
- / dir1
- / dir2
- file1
- file2
- composer.json
, root composer.json:
{
"name": "myproject/project",
"type": "library",
"repositories": [
{
"packagist" : false
},
{
"type": "package",
"package": {
"name" : "giulianobundles/mybundle",
"version" : "1",
"dist": {
"url": "http://url/to/zip/file",
"type": "zip"
}
}
},
{
"type": "package",
"package": {
"name" : "giulianobundles/mybundlerequirement",
"version" : "1",
"dist": {
"url": "http://url/to/zip/file",
"type": "zip"
},
}
},
],
"require": {
"php": ">=5.3.2",
"giulianobundles/mybundle": "*"
},
"autoload": {
"psr-0": {
"config": "./"
}
},
}
composer.json
{
"name": "giulianobundles/mybundle",
"type":"library",
"require": {
"giulianobundles/mybundlerequirement": "1"
}
}
Mybundle , composer.json . ? ?