jimchen/aliyun-php-sdk-sts
Composer 安装命令:
composer require jimchen/aliyun-php-sdk-sts
包简介
aliyun php sdk sts
README 文档
README
阿里云STS SDK
Requirements
- PHP 5.5+
Installing
$ composer require "jimchen/aliyun-php-sdk-sts:^2.0"
Usage
use JimChen\AliyunSts\Client; $client = new Client( $accessKeyId, $accessKeySecret, $regionId, $clientName, $debug, $connectionTimeout, $timeout, $cert, $options ); $result = $client->assumeRole() ->client($clientName) ->withRoleArn($roleArn) ->withRoleSessionName($roleSessionName) ->withDurationSeconds($durationSeconds) ->request(); $result->isSuccess();
In Laravel
$ php artisan vendor:publish --provider='JimChen\AliyunSts\LaravelProvider'
$result = app('aliyun.sts')->assumeRole() ->client($clientName) ->withRoleArn($roleArn) ->withRoleSessionName($roleSessionName) ->withDurationSeconds($durationSeconds) ->request(); $result->isSuccess();
for more api usage, see https://github.com/aliyun/openapi-sdk-php
License
Apache License 2.0
统计信息
- 总下载量: 2.47k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2018-10-31