PHPackages                             vicleos/aliyun - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. vicleos/aliyun

ActiveLibrary[File &amp; Storage](/categories/file-storage)

vicleos/aliyun
==============

laravel aliyun oss mns sms ~

v1.0(8y ago)120MITPHPPHP &gt;=5.5.9

Since Nov 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/vicleos/aliyun)[ Packagist](https://packagist.org/packages/vicleos/aliyun)[ RSS](/packages/vicleos-aliyun/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Aliyun Service for Laravel
--------------------------

[](#aliyun-service-for-laravel)

提供阿里云OSS、MNS、Memcahe服务接口

安装
--

[](#安装)

### 通过 Composer 安装

[](#通过-composer-安装)

```
composer require vicleos/aliyun
```

### 编辑 config/app.php 注册 providers 和 aliases

[](#编辑-configappphp-注册-providers-和-aliases)

```
'providers' => [
    Vicleos\Aliyun\AliyunServiceProvider::class,
]
```

```
'aliases' => [
    'Aliyun' => Vicleos\Aliyun\Facades\Aliyun::class,
]
```

### 生成配置文件

[](#生成配置文件)

```
php artisan vendor:publish --provider="Vicleos\Aliyun\AliyunServiceProvider"
```

将在config文件夹中生成一个aliyun.php的配置文件，在该配置文件中填入相关信息。

使用方法及代码示例
---------

[](#使用方法及代码示例)

### MNS

[](#mns)

阿里云MNS除提供消息中间件服务外同时具备发送短信（SMS）的能力，使用方法：

- 通过 createClient() 方法实例化一个mns对象
- 调用该对象的SendSMSMessage()方法即可发送SMS消息到指定手机号

```
use Aliyun;

$mns = Aliyun::createClient('mns');    
$ret = $mns->SendSMSMessage(13888888888,'SMS_14695416',['customer'=>'测试']);  
// 成功返回 True， 失败返回False
```

目前支持的阿里云服务
----------

[](#目前支持的阿里云服务)

目前支持下列服务:

服务名类名API 版本服务介绍Aliyun OSS ALY.OSS2017-09-01[OSS](https://www.aliyun.com/product/oss)Aliyun MNS ALY.MNS2017-09-01[MNS](https://www.aliyun.com/product/mns)Aliyun CDN ALY.CDN2017-09-01[CDN](https://www.aliyun.com/product/cdn)Aliyun MemcacheALY.Memcache2017-09-01[Memcache](https://www.aliyun.com/product/ocs)#### 使用过程中发现问题，发送issues。

[](#使用过程中发现问题发送issues)

License
-------

[](#license)

This SDK is distributed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3108d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/46961aecae8ab5a4a284a213238aef0d77849100f5b701f38b89eec8d58ca0ff?d=identicon)[vicleos](/maintainers/vicleos)

---

Top Contributors

[![vicleos](https://avatars.githubusercontent.com/u/28558609?v=4)](https://github.com/vicleos "vicleos (13 commits)")

---

Tags

laravellaravel 5aliyunl5ossmns

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vicleos-aliyun/health.svg)

```
[![Health](https://phpackages.com/badges/vicleos-aliyun/health.svg)](https://phpackages.com/packages/vicleos-aliyun)
```

###  Alternatives

[jacobcyl/ali-oss-storage

aliyun oss filesystem storage for laravel 5+

523566.2k7](/packages/jacobcyl-ali-oss-storage)[aobozhang/aliyun-oss-adapter

Use Aliyun oss as Storage for Laravel 5.0+

141.0k](/packages/aobozhang-aliyun-oss-adapter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
