jimchen/aliyun-php-sdk-sts 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2018-10-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固