PHP code example of aobozhang / rongcloud-facades

1. Go to this page and download the library: Download aobozhang/rongcloud-facades 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 / rongcloud-facades example snippets




    return = [

        ...,

        'providers' = [

            ...,

            Aobo\RongCloud\RongCloudServiceProvider::class,

        ],
    ];


use RongCloud;

//...

$res = RongCloud::getToken($id,$name,$portraitUri);

var_dump($res);


return [
    'AppKey'      => env('RONGCLOUD_APP_KEY', 'your appKey'),
    'AppSecret'      => env('RONGCLOUD_APP_SECRET', 'your appSecret')
];

php artisan vendor:publish