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 2mo 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 54% 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

2799d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/77fa7edf46e822fa6bd6f3fb4c6bb08ebe5c773a2e0fd65b1671d3d2bcebbe6b?d=identicon)[Leslie1sMe](/maintainers/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

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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