Package Data | |
---|---|
Maintainer Username: | cole |
Maintainer Contact: | 18200172438@163.com (bmsLaravel) |
Package Create Date: | 2020-09-02 |
Package Last Update: | 2023-01-23 |
Home Page: | |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-11-17 03:06:37 |
Package Statistics | |
---|---|
Total Downloads: | 2,067 |
Monthly Downloads: | 21 |
Daily Downloads: | 0 |
Total Stars: | 4 |
Total Watchers: | 2 |
Total Forks: | 3 |
Total Open Issues: | 1 |
composer require bmslaravel/aliyun-sts
Helium\Sts\AliYunSTSServiceProvider::class
$app->register(Helium\Sts\AliYunSTSServiceProvider::class);
'AliYunSTS' => Helium\Sts\Facades\AliYunSTS::class
$app->withFacades(true, [
// ...
Helium\Sts\Facades\AliYunSTS::class => 'AliYunSTS',
]);
vendor/bmslaravel/src/config/sts.php
to config/sts.php
try{
$response = Helium\Sts\Facades\AliYunSTS::token();
dd($response);
// or
$config = config('sts');
$response = (new Helium\Sts\Sts($config))->token();
dd($response);
// or
$response = app('aliyun.sts')->token();
dd($response);
} catch (\Exception $exception) {
dd($exception);
}
https://help.aliyun.com/document_detail/64041.html?spm=a2c4g.11186623.2.17.38165bd44oA7Q2#concept-64041-z https://help.aliyun.com/document_detail/32069.html?spm=a2c4g.11186623.6.989.26a459662WQfhJ https://help.aliyun.com/document_detail/100624.html?spm=a2c4g.11186623.2.10.683030ffnJJSmX#concept-xzh-nzk-2gb