From 9fd9d34b40651fafa66cc9161972730cc932691d Mon Sep 17 00:00:00 2001 From: = Date: Sun, 22 Nov 2015 16:26:10 +0100 Subject: [PATCH] Describe how to reference PHP versions and PHP extensions. --- doc/04-schema.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/04-schema.md b/doc/04-schema.md index fccdb91a2..787e4c168 100644 --- a/doc/04-schema.md +++ b/doc/04-schema.md @@ -327,6 +327,20 @@ It is also possible to inline-alias a package constraint so that it matches a constraint that it otherwise would not. For more information [see the aliases article](articles/aliases.md). +`require` and `require-dev` also support references to specific PHP versions +and PHP extensions your project needs to run successfully. + +```json +Example: + +{ + "require" : { + "php" : ">=5.3.10", + "ext-mbstring": "*" + } +} +``` + #### require Lists packages required by this package. The package will not be installed