PHP code example of monyxie / laravel-easemob

1. Go to this page and download the library: Download monyxie/laravel-easemob library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

monyxie / laravel-easemob example snippets


    'providers' => [
        /**
         * 添加供应商
         */
        link1st\Easemob\EasemobServiceProvider::class,
    ],
    'aliases' => [
         /**
          * 添加别名
          */
        'Easemob' => link1st\Easemob\Facades\Easemob::class,
    ],

$users = [
    ['username'=>'xiaoming2','password'=>1],
    ['username'=>'xiaoming3','password'=>1],
];
$user = \Easemob::authorizationRegistrations($users);

$user = \Easemob::getUserAll(100,'LTgzNDAxMjM3OTprcFJFRUpzdUVlYWh5V1UwQjNSbldR');