适用于 Laravel 的腾讯云API SDK
laravel-tencent-cloud
This is a tencent cloud expansion for the laravel
环境需求
- PHP >= 7.0
Installation
composer require larva/laravel-tencent-cloud -vv
for Laravel
This service provider must be registered.
// config/app.php
'providers' => [
'...',
Larva\TencentCloud\TencentCloudServiceProvider::class,
];
Use
try {
$cdn = TencentCloud::get('cdn');
$cdn->RefreshObjectCaches([
'ObjectPath' => [
'http://www.baidu.com',
],
'ObjectType' => 'File'
]);
} catch (\Exception $e) {
print_r($e->getMessage());
}