PHPackages                             wlfpanda1012/easy-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. wlfpanda1012/easy-sts

ActiveLibrary

wlfpanda1012/easy-sts
=====================

集成式Sts

v1.0.4(1y ago)148MITPHPPHP &gt;=8.1

Since Oct 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ShaBaoFa/easy-sts)[ Packagist](https://packagist.org/packages/wlfpanda1012/easy-sts)[ RSS](/packages/wlfpanda1012-easy-sts/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (7)Versions (6)Used By (0)

EasySts
=======

[](#easysts)

 [![](https://camo.githubusercontent.com/3fe2b00a3b57acdbf9c6ee0890609712713224e8b654eff0d23e4a0ae3969828/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d382e302d627269676874677265656e2e7376673f6d61784167653d32353932303030)](https://www.php.net) [![](https://camo.githubusercontent.com/0dee89908110ed2a83ee884a15e64086652dc25a3836bd592d2422e6c81464db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776c6670616e6461313031322f616c6979756e2d737473)](https://github.com/swoole/swoole-src)

介绍
--

[](#介绍)

一款简单易用的 临时访问凭证(`StsToken`) 封装包. 写法上借鉴了 `Hyperf` 的 `FileSystem` 包. 使用了 适配器 的方式实现了 不同服务端的 `Sts` 接口. 只需要做简单的配置即可使用.

平台支持
----

[](#平台支持)

- [Local](http://localhost)
- [阿里云](https://www.aliyun.com/)
- [天翼云](https://www.ctyun.com/)

安装
--

[](#安装)

```
composer require wlfpanda1012/easy-sts
# 如果 需要用天翼云
composer require wlfpanda1012/ctyun-sts
# 如果 需要用阿里云
composer require wlfpanda1012/aliyun-sts
```

单独包传送门
------

[](#单独包传送门)

- [wlfpanda1012/ctyun-sts](https://github.com/ShaBaoFa/ctyun-sts) 天翼云STS
- [wlfpanda1012/aliyun-sts](https://github.com/ShaBaoFa/aliyun-sts) 阿里云STS

发布配置
----

[](#发布配置)

```
php bin/hyperf.php vendor:publish wlfpanda1012/easy-sts
```

配置用例
----

[](#配置用例)

```
