From 5d5a84ef6bb2edaf446d125582e2809573a03d87 Mon Sep 17 00:00:00 2001 From: zhaomingliang <248278242@qq.com> Date: Mon, 4 Apr 2016 00:12:48 +0800 Subject: [PATCH] Update 01-basic-usage.md --- cn-introduction/01-basic-usage.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cn-introduction/01-basic-usage.md b/cn-introduction/01-basic-usage.md index b097c02..328d70c 100644 --- a/cn-introduction/01-basic-usage.md +++ b/cn-introduction/01-basic-usage.md @@ -65,7 +65,15 @@ php composer.phar ``` 你可以看到, `require` 需要一个 **包名称** (例如 `monolog/monolog`) 映射到 **包版本** (例如 `1.0.*`) 的对象。 - +同时你还可以声明项目所需的环境版本支持(例下) +```json +{ + "require" : { + "php" : "^5.5 || ^7.0", + "ext-mbstring": "*" + } +} +``` ### 包名称