Looking to hire Laravel developers? Try LaraJobs

laravel-aliyun maintained by xutl

Description
This is a Laravel expansion for the Aliyun.
Last update
2018/12/26 10:15 (dev-master)
License
Links
Downloads
52
Tags

Comments
comments powered by Disqus

laravel-aliyun

This is a aliyun expansion for the laravel

License Latest Stable Version Total Downloads

接口支持

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

环境需求

  • PHP >= 5.6

Installation

composer require xutl/laravel-aliyun

for Laravel

This service provider must be registered.

// config/app.php

'providers' => [
    '...',
    XuTL\Aliyun\AliyunServiceProvider::class,
];

Use

try {
	$aliyun = Aliyun::get('cdn');
	$cdn->RefreshObjectCaches([
		'ObjectPath' => [
			'http://www.baidu.com',
		],
		'ObjectType' => 'File'
	]);
} catch (\Exception $e) {
	print_r($e->getMessage());
}