宝塔/laravel-aliyun

这是阿里云的Laravel扩展。

1.2.1 2018-12-26 09:15 UTC

This package is auto-updated.

Last update: 2024-08-26 21:46:07 UTC


README

这是Laravel的阿里云扩展

License Latest Stable Version Total Downloads

接口支持

  • CDN
  • 移动推送
  • 邮件推送
  • DNS
  • 域名
  • HTTPDNS
  • MNS

环境要求

  • PHP >= 5.6

安装

composer require xutl/laravel-aliyun

对于Laravel

此服务提供者必须注册。

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