Skip to content

Commit 51a7757

Browse files
authored
Merge pull request #151 from michalsn/docs-composer
docs: add composer minimum-stability instructions
2 parents 429a51a + 6175551 commit 51a7757

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

docs/installation.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,31 @@ The only thing you have to do is to run this command, and you're ready to go.
88
composer require codeigniter4/tasks
99
```
1010

11+
#### A composer error occurred?
12+
13+
If you get the following error:
14+
15+
```console
16+
Could not find a version of package codeigniter4/tasks matching your minimum-stability (stable).
17+
Require it with an explicit version constraint allowing its desired stability.
18+
```
19+
20+
1. Run the following commands to change your [minimum-stability](https://getcomposer.org/doc/articles/versions.md#minimum-stability) in your project `composer.json`:
21+
22+
```console
23+
composer config minimum-stability dev
24+
composer config prefer-stable true
25+
```
26+
27+
2. Or specify an explicit version:
28+
29+
```console
30+
composer require codeigniter4/tasks:dev-develop
31+
```
32+
33+
The above specifies `develop` branch.
34+
See <https://getcomposer.org/doc/articles/versions.md#branches>
35+
1136
## Manual Installation
1237

1338
In the example below we will assume, that files from this project will be located in `app/ThirdParty/tasks` directory.

0 commit comments

Comments
 (0)