xutl/laravel-aliyun is a Laravel package for this is a laravel expansion for the aliyun..
It currently has 1 GitHub stars and 52 downloads on Packagist (latest version 1.2.1).
Install it with composer require xutl/laravel-aliyun.
Discover more Laravel packages by xutl
or browse all Laravel packages to compare alternatives.
Last updated
This is a aliyun expansion for the laravel
composer require xutl/laravel-aliyun
This service provider must be registered.
// config/app.php
'providers' => [
'...',
XuTL\Aliyun\AliyunServiceProvider::class,
];
try {
$aliyun = Aliyun::get('cdn');
$cdn->RefreshObjectCaches([
'ObjectPath' => [
'http://www.baidu.com',
],
'ObjectType' => 'File'
]);
} catch (\Exception $e) {
print_r($e->getMessage());
}