composer require luoyy/aliyun-core
luoyy\AliCore\Providers\AcsClientServiceProvider
#阿里云CORE配置
ALI_REGION_ID=
ALI_ACCESS_KEY_ID=
ALI_ACCESS_KEY_SECRET=
/**
* STS DEMO
*/
use luoyy\AliCore\Facades\AcsClient;
use luoyy\AliCore\Sts\Request\AssumeRoleRequest;
$request = new AssumeRoleRequest();
$request->setRoleSessionName("client_name");
$request->setRoleArn(/*role_arn*/);
$request->setPolicy(/*policy*/);
$request->setDurationSeconds(/*token_expire_time*/);
$response = AcsClient::getAcsResponse($request);
var_dump($response);
包名 | 描述 | 版本 |
---|---|---|
luoyy/aliyun-core-sms | 短信sdk | v1.0.1 |
luoyy/aliyun-core-pns | 手机号认证sdk | v1.0.0 |
2021.01.19
:添加手机号认证sdk2020.09.30
:更新版本到2.0,更新SDK,除了STS其它模块改为composer包发布