php - Cannot define stable composer package -
i cannot tell whether it's composer.json or dependencies cause composer project not stable. packagist points 1.0 branch @ github. heart of composer.json appears below.
the way can composer create-project truckee/volunteer
work add argument --stability=dev
.
edit #2:
i owner of package, not being required other.
edit:
without argument following error occurs:
[invalidargumentexception] not find package truckee/volunteer stability stable.
is possible make stable?
composer.json
{ ... "repositories": [ { "type": "package", "package": { "name": "jquery/jquery", "version": "1.11.1", "dist": { "url": "http://code.jquery.com/jquery-1.11.1.js", "type": "file" } } } ], "require": { "php": ">=5.3.3", "symfony/symfony": "~2.4", "doctrine/orm": "~2.2,>=2.2.3", "doctrine/doctrine-bundle": "~1.2", "twig/extensions": "~1.0", "symfony/assetic-bundle": "~2.3", "symfony/swiftmailer-bundle": "~2.3", "symfony/monolog-bundle": "~2.4", "sensio/distribution-bundle": "~2.3", "sensio/framework-extra-bundle": "~3.0", "sensio/generator-bundle": "~2.3", "incenteev/composer-parameter-handler": "~2.0", "friendsofsymfony/user-bundle": "2.0.*@dev", "knplabs/knp-menu": "2.0.*@dev", "knplabs/knp-menu-bundle": "2.0.*@dev", "pugx/multi-user-bundle": "3.0.*@dev", "doctrine/doctrine-fixtures-bundle": "2.2.*", "liip/functional-test-bundle": "1.0.*@dev", "psliwa/pdf-bundle": "1.0.@dev", "braincrafted/bootstrap-bundle": "2.1.*", "oyejorge/less.php": "~1.5", "twbs/bootstrap": "3.0.*", "jquery/jquery": "1.11.*", "egeloen/ckeditor-bundle": "~2.0", "helios-ag/fm-elfinder-bundle": "~3.0" }, ... "extra": { ... "branch-alias": { "dev-master": "1.0-dev" } } }
composer doesn't consider git branch stable. default, branches can specified <branch>-dev
version. however, versions have stability of "dev". in order release stable version, need tag commit.
git tag -a v1.0.0 -m 'my release' git push --tags
now, once packagist reindexes, display release 1.0.0
in list. release "stable". can create project with:
composer create-project truckee/volunteer
this automatically latest tag in repository.
see composer docs more information on versions , tagging.
Comments
Post a Comment