PHPackages                             leslie/aliyun-sts - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. leslie/aliyun-sts

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

leslie/aliyun-sts
=================

使用STS授予用户临时权限操作OSS

v1.1(7y ago)52722[1 PRs](https://github.com/Leslie1sMe/aliyun-sts/pulls)MITPHPPHP &gt;=5.6

Since Aug 25Pushed 6y agoCompare

[ Source](https://github.com/Leslie1sMe/aliyun-sts)[ Packagist](https://packagist.org/packages/leslie/aliyun-sts)[ RSS](/packages/leslie-aliyun-sts/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (3)Used By (0)

使用STS授予用户临时权限操作OSS

使用方式：

引入文件：

require 'vendor/autoload.php'；

use Leslie\\AliyunSts\\AliSts;

$sts = new AliSts('xxxxxxxxx', 'xxxxxxxxxxxxxxxxxxx');

$res = $sts-&gt;assumeRole(3600, $policy, "xxxxxxxxxxx", 'username');

print\_r($res);

详情见test.php文件

关于policy：

需要根据需求自行添加策略，了解更多移步阿里云RAM控制台，或者OSS里的令牌管理。

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Every ~15 days

Total

2

Last Release

2850d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20894457?v=4)[Leslie](/maintainers/Leslie1sMe)[@Leslie1sMe](https://github.com/Leslie1sMe)

---

Tags

aliyunosssts

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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