PHPackages                             octopusz/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. [Security](/categories/security)
4. /
5. octopusz/aliyun-sts

ActiveLibrary[Security](/categories/security)

octopusz/aliyun-sts
===================

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

141PHP

Since Apr 3Pushed 7y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

使用方式：

引入文件：

require 'vendor/autoload.php'；

use Octopusz\\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

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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/8ac135e47d0894f43b6b59b20b81875d12cd3458c11e16a2110d9a73af811ea5?d=identicon)[octopusz](/maintainers/octopusz)

### Embed Badge

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

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

###  Alternatives

[paragonie/ecc

PHP Elliptic Curve Cryptography library

25866.3k44](/packages/paragonie-ecc)[sansec/magento2-module-shield

15218.6k](/packages/sansec-magento2-module-shield)[dwgebler/encryption

Encryption wrapper for PHP using libsodium — simple API for symmetric and asymmetric encryption, password hashing, digital signing, and message authentication.

317.5k](/packages/dwgebler-encryption)

PHPackages © 2026

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