PHP code example of guyanyouyou / easemob-php-composer

1. Go to this page and download the library: Download guyanyouyou/easemob-php-composer 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/ */

    

guyanyouyou / easemob-php-composer example snippets


$users = [
    ['username'=>'xiaoming2','password'=>1],
    ['username'=>'xiaoming3','password'=>1],
];
$user = $ease->authorizationRegistrations($users);

$user = $ease->getUserAll(100,'LTgzNDAxMjM3OTprcFJFRUpzdUVlYWh5V1UwQjNSbldR');