PHP code example of shankesgk2 / rongcloud

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

    

shankesgk2 / rongcloud example snippets


// laravel < 5.5
Shankesgk2\RongCloud\RongCloudServiceProvider::class,

// lumen
$app->register(Shankesgk2\RongCloud\RongCloudServiceProvider::class);

'RongCloud' => Shankesgk2\RongCloud\RongCloudServiceProvider::class,

RC_APP_KEY=
RC_APP_SECRET=
RC_API_URL=
RC_SMS_URL=

use Shankesgk2\RongCloud\Facades\RongCloud;

$user = [
    'id' => 'Lrkqw5cNGD',
    'name' => 'test1',
    'portrait' => 'http://7xogjk.com1.z0.glb.clouddn.com/IuDkFprSQ1493563384017406982'
];

$register = RongCloud::getUser()->register($user);

Shell
$ php artisan vendor:publish --provider="Shankesgk2\RongCloud\RongCloudServiceProvider"