Suppose I write a library A, which depends on another library, for example, monolog.
I want to install the latest monologue, so just put this inside composer.json:
{ "require": { "monolog/monolog": "*.*.*" } }
Then I ran $ php composer.phar install .
I expected to find the version installed inside composer.lock, but it is not there:
{ "hash": "d7bcc4fe544b4ef7561918a8fc6ce009", "packages": [ { "package": "monolog/monolog", "version": "dev-master", "source-reference": "2eb0c0978d290a1c45346a1955188929cb4e5db7" } ], "packages-dev": null, "aliases": [ ], "minimum-stability": "dev", "stability-flags": [ ] }
I need a version because I want to bind my library to a specific set of versions, for example: If I find that version 1.3.5, in my composer.json I would like to add something like this:
"require": { "monolog/monolog": "1.3.*" }
Any ideas?
php dependency-management composer-php package-managers
HappyDeveloper May 21 '12 at 11:38 a.m. 2012-05-21 11:38
source share