定制 awayr/aws-man 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

awayr/aws-man

Composer 安装命令:

composer require awayr/aws-man

包简介

Yii2 AWS Manager, An AWS APIs based wrapper built as Yii2 component. An extension to the AWS SDK for PHP for interacting with AWS services using resource-oriented objects.

README 文档

README

Cashier Extension for Yii 2 (Ported By Famous Yii2 Cashier [yii2mod/cashier]). Implemented with Latest Updates.


Yii2 AWS Manager

Yii2 AWS Manager, An AWS Resource APIs based wrapper built as Yii2 component. An extension to the AWS SDK for PHP for interacting with AWS services using resource-oriented objects.

Support

The AWS Resource APIs currently supports 7 services (cloudformation, ec2, glacier, iam, s3, sns, sqs).

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist awayr/aws-man "*"

or add

"awayr/aws-man": "*"

to the require section of your composer.json file.

Usage

1. Configuration

Once the extension is installed, locate main.php file and setup configurations below:

'components' => [
	'aws' => [
		'class' => 'awayr\aws-man\Base',
		'key' => 'your_key',
		'secret' => 'your_secret',
		'region' => 'your_region',
		// optional config file
		//'configFile' => require_once('/path/to/aws.config.php'),
	]
]

after adding the configuration, simply use it in your code by :

/* @var $aws awayr\aws-man\Base */
$aws = Yii::$app->aws;
$s3 = $aws->s3(['region' => 'eu-central-1']);
$bucket = $aws->s3->bucket('my-bucket');
$object = $bucket->object('image/bird.jpg');

统计信息

  • 总下载量: 108
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-19