aobozhang / neteaseim-laravel
used neteaseim as laravel facades
0.12
2016-05-20 08:47 UTC
Requires
- php: >=5.4.0
Suggests
- laravel/framework: 5.1.*
This package is not auto-updated.
Last update: 2024-12-07 19:50:08 UTC
README
used Neteaseim as Normal laravel facades
Installation
- First:
composer require aobozhang/neteaseim-laravel
- Second:
Modify "config\app.php"
<?php return = [ ..., 'providers' = [ ..., Aobo\Neteaseim\NimServiceProvider::class, ], ];
- Third:
type follow in console:
php artisan vendor:publish
Till now, you can use it
Usage
use Neteaseim; ... $param = [ 'accid' => 'test-accid-'.str_random(32), 'name' => 'test-name-'.str_random(32) ]; var_dump(Neteaseim::user_create($param));
To Use Your Own Configuration
Modify ".env" -- recommend
NETEASEIM_APPKEY=your key
NETEASEIM_APPSECRET=your secret
Or You Can Modify "config\neteaseim.php" -- The Same effect.
return [ 'appkey' => env('NETEASEIM_APPKEY', 'your key'), 'appsecret' => env('NETEASEIM_APPSECRET', 'your secret') ];