Skip to content

Commit 8a9635c

Browse files
committed
update readme agian
1 parent e9726e2 commit 8a9635c

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,36 @@ a php console application library.
99

1010
[中文README](./README_zh.md)
1111

12+
## project
13+
14+
- **github** https://github.com/inhere/php-console.git
15+
- **git@osc** https://git.oschina.net/inhere/php-console.git
16+
17+
**NOTICE**
18+
19+
- master branch is require `php >= 7` (recommended use)。
20+
- [php5](/inhere/php-console/tree/php5) It's a branch of PHP 5, but it hasn't been updated for some time (the basic functionality is complete).
21+
22+
## install
23+
24+
- by composer
25+
26+
编辑 `composer.json`,在 `require` 添加
27+
28+
```
29+
"inhere/console": "dev-master",
30+
// "inhere/console": "dev-php5", // for php5
31+
```
32+
33+
然后执行: `composer update`
34+
35+
- Direct fetch
36+
37+
```
38+
git clone https://git.oschina.net/inhere/php-console.git // git@osc
39+
git clone https://github.com/inhere/php-console.git // github
40+
```
41+
1242
## usage
1343

1444
```php
@@ -238,7 +268,6 @@ result:
238268
var_dump($result); // bool(false)
239269
```
240270

241-
242271
### `Interact::question()`/`Interact::ask()`
243272

244273
```php

README_zh.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
**注意:**
1818

1919
- master 分支是要求 `php >= 7` 的(推荐使用)。
20-
- [php5](./php5) 是 php 5 的分支,但有些时间没更新了(但是基本的功能都支持)。
20+
- [php5](/inhere/php-console/tree/php5) 是 php 5 的分支,但有些时间没更新了(但是基本的功能都支持)。
2121

2222
## 安装
2323

@@ -27,6 +27,7 @@
2727

2828
```
2929
"inhere/console": "dev-master",
30+
// "inhere/console": "dev-php5", // for php5
3031
```
3132

3233
然后执行: `composer update`

0 commit comments

Comments
 (0)