dexamped/kohana-aws 问题修复 & 功能扩展

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

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

dexamped/kohana-aws

Composer 安装命令:

composer require dexamped/kohana-aws

包简介

Kohana wrapper for the aws-php-sdk.

README 文档

README

Kohana wrapper module for the Amazon AWS PHP SDK.

  1. Installation
  2. Usage

Installation

Install the module

git submodule add git@github.com:dexamped/kohana-aws.git modules/kohana-aws
git submodule update --init --recursive

Load dependencies

We have to install vendor's dependencies by running composer install

composer install --working-dir=modules/kohana-aws/vendor/aws-sdk-php/

Configuration

Edit application/bootstrap.php and add the module:

Kohana::modules(array(
    ...
    'aws' => 'modules/kohana-aws',
    ...
));

Copy the modules/kohana-aws/config/aws.php to APPPATH/config/aws.php and setup your config.

Usage

<?php

class Controller_Amazon extends Controller {

	public function action_index()
	{
		// List some S3 buckets
		$s3 = Amazon::instance()->get('s3');

		// Execute an S3 method
		$result = $s3->listBuckets();

		// Do something with it here
	}
}
?>

Full AWS SDK Usage

http://docs.aws.amazon.com/aws-sdk-php/latest/

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-05-22