S
S
Sergey Beloventsev2017-04-21 21:12:47
Yii
Sergey Beloventsev, 2017-04-21 21:12:47

What is wrong with my composer package?

I'm trying to create my own addition, here it is , then I try to save it according to instruction c omposer require sirgalas/yii2-edit-translation, it gives such an error

[InvalidArgumentException]
Could not find package sirgalas/yii2-edit-translation at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability

tried like this
php composer.phar require "sirgalas/yii2-edit-translation":"*"
get
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package sirgalas/yii2-edit-translation * is satisfiable by sirgalas/yii2-edit-translation[dev-master] but these conflict with your requirements or minimum-stability.

then so
php composer.phar require "sirgalas/yii2-edit-translation":"@dev"

got
Problem 1
- Installation request for sirgalas/yii2-edit-translation Dev -> satisfiable by sirgalas/yii2-edit-translation[dev-master].
- sirgalas/yii2-edit-translation dev-master requires zelenin/yii2-i18n-module dev-master -> satisfiable by zelenin/yii2-i18n-module[dev-master] but these conflict with your requirements or minimum-stability.

explain what I'm doing this way or give a link to a good lesson on composer in Russian, otherwise I didn’t find a single one

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lexey Felde, 2017-04-21
@Tekill

There are two options:
1. Specify in composer.json that the composer will load "unstable" versions. By default, the composer runs in stable mode and only downloads stable versions. 2. Tag the commit (using semver 0.0.1 notation) and push it, this will be the first stable version of the package. You can read more here, comments too: codinghamster.info/php/stability-paketov-v-compose..."minimum-stability": "dev"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question