Package Data | |
---|---|
Maintainer Username: | laggards |
Maintainer Contact: | laggards@hotmail.com (Laggards) |
Package Create Date: | 2015-11-17 |
Package Last Update: | 2020-04-02 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-04-19 15:07:59 |
Package Statistics | |
---|---|
Total Downloads: | 1,252 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
提供阿里云OSS、MNS、Memcahe服务接口
composer require laggards/aliyun
'providers' => [
Laggards\Aliyun\AliyunServiceProvider::class,
]
'aliases' => [
'Aliyun' => Laggards\Aliyun\Facades\Aliyun::class,
]
php artisan vendor:publish --provider="Laggards\Aliyun\AliyunServiceProvider"
将在config文件夹中生成一个aliyun.php的配置文件,在该配置文件中填入相关信息。
阿里云MNS除提供消息中间件服务外同时具备发送短信(SMS)的能力,使用方法:
use Aliyun;
$mns = Aliyun::createClient('mns');
$ret = $mns->SendSMSMessage(13888888888,'SMS_14695416',['customer'=>'测试']);
// 成功返回 True, 失败返回False
目前支持下列服务:
| 服务名 | 类名 | API 版本 | 服务介绍 | :------------ |:---------------:| -----:| -----:| | Aliyun OSS | ALY.OSS | 2017-09-01 | OSS | | Aliyun MNS | ALY.MNS | 2017-09-01 | MNS | | Aliyun CDN | ALY.CDN | 2017-09-01 | CDN | | Aliyun Memcache | ALY.Memcache | 2017-09-01 | Memcache |
This SDK is distributed under the Apache License, Version 2.0.