From bff904d11c35a1665be902a7288f1becad2fe882 Mon Sep 17 00:00:00 2001 From: Deamon Date: Fri, 25 Aug 2017 15:39:52 +0200 Subject: [PATCH] add example on how to add several version of a package --- doc/05-repositories.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/doc/05-repositories.md b/doc/05-repositories.md index fdfb18f83..06669384d 100644 --- a/doc/05-repositories.md +++ b/doc/05-repositories.md @@ -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