Skip to content

Commit

Permalink
docs: 去除文档中的版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed May 9, 2021
1 parent b642a1e commit 13f22fa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 28 deletions.
25 changes: 11 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ Start using Wei in 3 steps, it's easier than any frameworks you've seen before!
require 'path/to/wei/lib/Wei.php';

// 2. Create the default wei container instance
$wei = wei(array(
$wei = wei([
// Options for wei container
'wei' => array(
'wei' => [
'debug' => true,
// Other options ...
),
],
// Options for database
'db' => array(
'db' => [
'driver' => 'mysql',
'host' => 'localhost',
'dbname' => 'wei',
'charset' => 'utf8',
'user' => 'root',
'password' => 'xxxxxx',
),
],
// More options ...
));
]);

// 3. Using "db" object to execute SQL query
$result = $wei->db->fetch("SELECT 1 + 2");
Expand All @@ -42,18 +42,15 @@ $result = $wei->db->fetch("SELECT 1 + 2");

### Composer

Define the following requirement in your `composer.json` file and run `php composer.phar install` to install
```json
{
"require": {
"wei/wei": "0.9.23"
}
}
Run the following command to install

```sh
composer require wei/wei
```

### Download source code

* [Stable Version](https://github.com/twinh/wei/archive/v0.9.23.zip)
* [Stable Version](https://github.com/twinh/wei/releases/latest)
* [Develop Version](https://github.com/twinh/wei/archive/master.zip)

## Resources
Expand Down
18 changes: 4 additions & 14 deletions docs/zh-CN/book/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,10 @@ Wei支持通过[Composer](https://getcomposer.org)下载和直接下载源文件
$ curl -sS https://getcomposer.org/installer | php
```

2. 在根目录下创建或更新您的composer.json文件

```json
{
"require": {
"wei/wei": "0.9.23"
}
}
```

3. 执行安装命令,耐心等待到安装结束
2. 执行安装命令,耐心等待到安装结束

```sh
$ php composer.phar install
composer require wei/wei
```

至此,您可以看到根目录下增加了`vendor`目录,安装完成.
Expand All @@ -38,11 +28,11 @@ Wei支持通过[Composer](https://getcomposer.org)下载和直接下载源文件

### 稳定版

Zip文件下载: https://github.com/twinh/wei/archive/v0.9.23.zip
https://github.com/twinh/wei/releases/latest

### 开发尝鲜版

Zip文件下载: https://github.com/twinh/wei/archive/master.zip
https://github.com/twinh/wei/archive/master.zip

### 更多历史版本

Expand Down

0 comments on commit 13f22fa

Please sign in to comment.