janhve / lumen-tencent-cloud
这是为腾讯云提供的 Laravel 扩展。
dev-master / 1.0.x-dev
2022-04-18 15:23 UTC
Requires
- ext-dom: *
- ext-json: *
- ext-libxml: *
- ext-simplexml: *
- illuminate/bus: ^5.1 || ^6.0
- illuminate/queue: ^5.1 || ^6.0
- illuminate/support: ^5.1 || ^6.0
- tencentcloud/tencentcloud-sdk-php: ^3.0
This package is not auto-updated.
Last update: 2024-10-02 01:28:15 UTC
README
这是为 Laravel 提供的腾讯云扩展。
环境需求
- PHP >= 7.0
安装
composer require janhve/lumen-tencent-cloud
对于 Laravel
必须注册此服务提供程序。
// config/app.php 'providers' => [ '...', Janhve\TencentCloud\TencentCloudServiceProvider::class, ];
使用
try { $cdn = TencentCloud::get('cdn'); $cdn->RefreshObjectCaches([ 'ObjectPath' => [ 'http://www.baidu.com', ], 'ObjectType' => 'File' ]); } catch (\Exception $e) { print_r($e->getMessage()); }