update installation.md and 安装.md

TheNorthMemory 2015-06-13 15:21:23 +08:00
parent c26b14b7a0
commit 61943f3946
2 changed files with 12 additions and 6 deletions

@ -1,8 +1,8 @@
## Requirements
## Environments
- PHP >= 5.3.0
- [PHP cURL extension](http://php.net/manual/en/book.curl.php)
- [PHP Mcrypt extension](http://php.net/manual/en/book.mcrypt.php){{fn(optional, required while enable the encrypt transfer feature)}}
- [PHP Mcrypt extension](http://php.net/manual/en/book.mcrypt.php) optional required while enable the encrypt transfer feature
[Laravel 5 SDK wrapper](https://github.com/overtrue/laravel-wechat)

@ -1,7 +1,13 @@
环境要求: PHP >= 5.3.0
## 环境要求
- PHP >= 5.3.0
- [PHP cURL 扩展](http://php.net/manual/en/book.curl.php)
- [PHP Mcrypt 扩展](http://php.net/manual/en/book.mcrypt.php) 当启用加密消息时必选
[Laravel 5 拓展包: overtrue/laravel-wechat](https://github.com/overtrue/laravel-wechat)
## 安装
1. 使用 [composer](http://getcomposer.org/):
```shell
@ -10,14 +16,14 @@
2. 手动安装
下载 [最新版zip包](https://github.com/overtrue/wechat/archive/master.zip) 或者下载指定版本: https://github.com/overtrue/wechat/releases
- 下载 [最新版zip包](https://github.com/overtrue/wechat/archive/master.zip)
- 或者下载 [指定版本](https://github.com/overtrue/wechat/releases)
然后引入根目录的 `autoload.php` 即可:
```php
<?php
require "wechat/autoload.php"; // 路径请修改为你具体的实际路径
require __DIR__ . "/wechat/autoload.php"; // 路径请修改为你具体的实际路径
...
```