PHPackages                             clown/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. [API Development](/categories/api)
4. /
5. clown/aliyun

ActiveLibrary[API Development](/categories/api)

clown/aliyun
============

阿里云的接口

027PHP

Since Dec 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Clownsushu/clownaliyun)[ Packagist](https://packagist.org/packages/clown/aliyun)[ RSS](/packages/clown-aliyun/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

#### Oss使用

[](#oss使用)

```
// 1. OSS使用
$oss = new Oss('AccessKey ID', 'AccessKey Secret', '空间名称', 'oss-cn-chengdu.aliyuncs.com');

// 使用文件上传
// 参数1: 本地文件路径,
// 参数2: 文件保存的路径名称和类型 不能以/开头,
// 参数3: bool 类型是否直接返回访问地址默认 false
$oss->uploadFile('本地文件路径', '文件保存的路径名称和类型 不能以/开头', true);
// 使用字符串上传
// 参数1: 要上传的内容,
// 参数2: 文件保存的路径名称和类型 不能以/开头,
// 参数3: bool 类型是否直接返回访问地址默认 false
$oss->uploadString('要上传的内容', '文件保存的路径名称和类型 不能以/开头', true);
```

#### Sms使用

[](#sms使用)

```
// 1. sms使用
$sms = new Sms('AccessKey ID', 'AccessKey Secret', '短信签名名称', 'oss-cn-chengdu.aliyuncs.com');

// 短信发送
// 参数1:  接收者手机号码
// 参数2:  短信模板id
// 参数3:  要替换的参数 例如:短信模板是[您好您的验证码为: ${code}, 打死也不要告诉别人哦!] 可以传参为['code' => 111111]
$sms->sendSms('接收者手机号码', '短信模板id', ['code' => 111111]);
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ed56b77070b98e1525eb4597c246c10d9db00d9ee9ce8a91ae2fd121a23b043?d=identicon)[Clownsushu](/maintainers/Clownsushu)

---

Top Contributors

[![Clownsushu](https://avatars.githubusercontent.com/u/45623867?v=4)](https://github.com/Clownsushu "Clownsushu (12 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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