add installation.md

TheNorthMemory 2015-06-13 15:16:14 +08:00
parent cb33d8eff1
commit c26b14b7a0

28
installation.md Normal file

@ -0,0 +1,28 @@
## Requirements
- 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)}}
[Laravel 5 SDK wrapper](https://github.com/overtrue/laravel-wechat)
## Installations
1. By [composer](http://getcomposer.org/):
```shell
composer require overtrue/wechat
```
2. By Downlads
- [download the lastest version zip package](https://github.com/overtrue/wechat/archive/master.zip)
- [or the archived version](https://github.com/overtrue/wechat/releases)
and then point-out the package `autoload.php` file such as:
```php
<?php
require __DIR__ . "/wechat/autoload.php";
...
```