PHP code example of aobozhang / neteaseim-laravel

1. Go to this page and download the library: Download aobozhang/neteaseim-laravel 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/ */

    

aobozhang / neteaseim-laravel example snippets




    return = [

        ...,

        'providers' = [

            ...,

            Aobo\Neteaseim\NimServiceProvider::class,

        ],
    ];


use Neteaseim;

...

$param = [
    'accid' => 'test-accid-'.str_random(32),
    'name'  => 'test-name-'.str_random(32)
];

var_dump(Neteaseim::user_create($param));


return [
    'appkey'      => env('NETEASEIM_APPKEY', 'your key'),
    'appsecret'   => env('NETEASEIM_APPSECRET', 'your secret')
];

php artisan vendor:publish