https://github.com/xutl/laravel-aliyun
阿里云
https://github.com/xutl/laravel-aliyun
Last synced: 2 months ago
JSON representation
阿里云
- Host: GitHub
- URL: https://github.com/xutl/laravel-aliyun
- Owner: xutl
- License: mit
- Created: 2018-10-13T12:11:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-26T09:16:25.000Z (over 6 years ago)
- Last Synced: 2025-01-20T12:46:37.340Z (4 months ago)
- Language: PHP
- Size: 50.8 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-aliyun
This is a aliyun expansion for the laravel
[](https://packagist.org/packages/xutl/laravel-aliyun)
[](https://packagist.org/packages/xutl/laravel-aliyun)
[](https://packagist.org/packages/xutl/laravel-aliyun)## 接口支持
- CDN
- 移动推送
- 邮件推送
- DNS
- 域名
- HTTPDNS
- MNS## 环境需求
- PHP >= 5.6
## Installation
```bash
composer require xutl/laravel-aliyun
```## for Laravel
This service provider must be registered.
```php
// config/app.php'providers' => [
'...',
XuTL\Aliyun\AliyunServiceProvider::class,
];
```## Use
```php
try {
$aliyun = Aliyun::get('cdn');
$cdn->RefreshObjectCaches([
'ObjectPath' => [
'http://www.baidu.com',
],
'ObjectType' => 'File'
]);
} catch (\Exception $e) {
print_r($e->getMessage());
}
```