I don't really understand how Composer works with the minimum-stability setting.
I have two packages. Let's say, PackageA
and PackageB
.
The composer.json
file of PackageA
looks like this:
{
"name": "vendor/packagea",
"minimum-stability": "dev",
"require": {
"vendor/packageb": "dev"
}
}
So PackageA
requires PackageB
. The json of PackageB
looks like this:
{
"name": "vendor/packageb",
"minimum-stability": "dev"
}
So both say minimum stability are dev
. So I assume that when I do:
composer create-project vendor/packagea
But then it complains with the message:
[InvalidArgumentException]
Could not find package vendor/packagea with stability stable.
Which I find strange, because I would assume that setting the minimum stability to dev
would pull the package from its "development" branch. Which in the case of github is always dev-master
.
So I tried to install it by telling composer what branch to use:
composer create-project vendor/packagea testFolder dev-master
But then it complains that it can't find PackageB
:
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package vendor/packageb dev could not be found.
Then how am I able to install my package? I'm still developing so I dont want to create a release for PackageA and PackageB yet...
require
todev-master
works indeed. Also have to install it with thedev-master
option. But it still seems strange to me. Loos likedev
is completely useless since it really doesn't do anything for me. – Tiffany