aobozhang / rongcloud-facades by Aobo

used RongCloud as laravel facades
45
0
2
Package Data
Maintainer Username: Aobo
Maintainer Contact: aobozhang@gmail.com (Aobo)
Package Create Date: 2016-02-16
Package Last Update: 2016-02-17
Language: PHP
License: MIT
Last Refreshed: 2024-12-12 15:02:55
Package Statistics
Total Downloads: 45
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

rongcloud-facades for laravel

used rongcloud as Normal laravel facades

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

  • First:
composer require aobozhang/rongcloud-facades '@dev'   //get latest dev version
composer require aobozhang/rongcloud-facades          //get stable version

  • Second:

Modify "config\app.php"

<?php

    return = [

        ...,

        'providers' = [

            ...,

            Aobo\RongCloud\RongCloudServiceProvider::class,

        ],
    ];

  • Third:
php artisan vendor:publish

Usage

use RongCloud;

//...

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

var_dump($res);

To Use Your Own Configuration

Modify ".env" -- recommend

RONGCLOUD_APP_KEY=YourAppKey
RONGCLOUD_APP_SECRET=YourAppSecret

Or You Can Modify "config\rongcloud.php" -- The Same effect.

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