larva/laravel-tencent-cloud

This is a Laravel expansion for the Tencent Cloud.

1.0.6 2022-01-14 06:01 UTC

This package is auto-updated.

Last update: 2024-02-27 20:39:03 UTC


README

This is a tencent cloud expansion for the laravel

License Latest Stable Version Total Downloads

环境需求

  • PHP >= 7.0

Installation

composer require larva/laravel-tencent-cloud

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());
}

#API网关