mirror of
https://github.com/w7corp/easywechat.git
synced 2025-01-22 11:32:08 +00:00
update installation.md and 安装.md
parent
c26b14b7a0
commit
61943f3946
@ -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)
|
||||
|
||||
|
14
安装.md
14
安装.md
@ -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"; // 路径请修改为你具体的实际路径
|
||||
...
|
||||
```
|
Loading…
Reference in New Issue
Block a user