Package Data | |
---|---|
Maintainer Username: | Aobo |
Maintainer Contact: | aobozhang@gmail.com (Aobo) |
Package Create Date: | 2016-05-07 |
Package Last Update: | 2016-07-31 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-11 15:22:02 |
Package Statistics | |
---|---|
Total Downloads: | 217 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 3 |
Total Forks: | 1 |
Total Open Issues: | 0 |
used Neteaseim as Normal laravel facades
composer require aobozhang/neteaseim-laravel
Modify "config\app.php"
<?php
return = [
...,
'providers' = [
...,
Aobo\Neteaseim\NimServiceProvider::class,
],
];
type follow in console:
php artisan vendor:publish
Till now, you can use it
use Neteaseim;
...
$param = [
'accid' => 'test-accid-'.str_random(32),
'name' => 'test-name-'.str_random(32)
];
var_dump(Neteaseim::user_create($param));
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')
];