1
0
Fork 0

add example on how to add several version of a package

pull/6632/head
Deamon 2017-08-25 15:39:52 +02:00
parent d9885d5b3b
commit bff904d11c
1 changed files with 24 additions and 0 deletions

View File

@ -518,6 +518,30 @@ Typically you would leave the source part off, as you don't really need it.
> reference you will have to delete the package to force an update, and will
> have to deal with an unstable lock file.
"package" option can also get an array as value. Using this, you can define several versions of your package like this :
```json
{
"repositories": [
{
"type": "package",
"package": [
{
"name": "foo/bar",
"version": "1.0.0",
...
},
{
"name": "foo/bar",
"version": "2.0.0",
...
}
]
}
]
}
```
## Hosting your own
While you will probably want to put your packages on packagist most of the