Package Data | |
---|---|
Maintainer Username: | Aobo |
Maintainer Contact: | aobozhang@gmail.com (Aobo) |
Package Create Date: | 2015-12-27 |
Package Last Update: | 2016-02-16 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-11 15:15:31 |
Package Statistics | |
---|---|
Total Downloads: | 83 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
used Easemob as Normal laravel facades
composer require aobozhang/easemob-facades
Modify "config\app.php"
<?php
return = [
...,
'providers' = [
...,
Aobo\Easemob\EasemobServiceProvider::class,
],
];
php artisan vendor:publish
Till now, you can use it
Test Account Supply by http://github/easemob/
use Easemob;
...
$options = [
'username' => 'test_username',
'password' => 'test_password'
];
return Easemob::accreditRegister($options);
Modify ".env" -- recommend
EASEMOB_ORG_NAME=YourOrgName
EASEMOB_APP_NAME=YourAppName
EASEMOB_CLIENT_ID=YourClientID
EASEMOB_CLIENT_SECRET=YourClientSecret
Or You Can Modify "config\easemob.php" -- The Same effect.
return [
'org_name' => env('EASEMOB_ORG_NAME', 'easemob-playground'),
'app_name' => env('EASEMOB_APP_NAME', 'test1'),
'client_id' => env('EASEMOB_CLIENT_ID', 'YXA6wDs-MARqEeSO0VcBzaqg5A'),
'client_secret' => env('EASEMOB_CLIENT_SECRET', 'YXA6JOMWlLap_YbI_ucz77j-4-mI0JA'),
];