luoyy/aliyun-core

There is no license information available for the latest version (v2.0.1) of this package.

aliyun-php-sdk-core

v2.0.1 2020-09-30 03:49 UTC

This package is auto-updated.

Last update: 2024-11-19 16:41:58 UTC


README

安装包

composer require luoyy/aliyun-core
在 app.php 中注册服务器提供者(Laravel5.5+支持自动发现)
luoyy\AliCore\Providers\AcsClientServiceProvider
ENV
#阿里云CORE配置
ALI_REGION_ID=
ALI_ACCESS_KEY_ID=
ALI_ACCESS_KEY_SECRET=

Quick Sample Usage

/**
 * 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);

相关包

更新日志

  • 2021.01.19:添加手机号认证sdk
  • 2020.09.30:更新版本到2.0,更新SDK,除了STS其它模块改为composer包发布