larva / laravel-tencent-cloud
这是为腾讯云提供的Laravel扩展。
1.0.6
2022-01-14 06:01 UTC
Requires
- ext-dom: *
- ext-json: *
- ext-libxml: *
- ext-simplexml: *
- illuminate/bus: ^6.0 || ^7.0 || ^8.0 || ^9.0
- illuminate/http: ^7.0 || ^8.0 || ^9.0
- illuminate/queue: ^6.0 || ^7.0 || ^8.0 || ^9.0
- illuminate/support: ^6.0 || ^7.0 || ^8.0 || ^9.0
- larva/tencentcloud-sdk-php: ^3.0
README
这是Laravel的腾讯云扩展
环境需求
- PHP >= 7.0
安装
composer require larva/laravel-tencent-cloud
对于Laravel
必须注册此服务提供者。
// config/app.php 'providers' => [ '...', Larva\TencentCloud\TencentCloudServiceProvider::class, ];
使用
try { $cdn = TencentCloud::get('cdn'); $cdn->RefreshObjectCaches([ 'ObjectPath' => [ 'http://www.baidu.com', ], 'ObjectType' => 'File' ]); } catch (\Exception $e) { print_r($e->getMessage()); } #API网关