定制 cuppett/cakephp-aws_utils 二次开发

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

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

cuppett/cakephp-aws_utils

最新稳定版本:1.0.1

Composer 安装命令:

composer require cuppett/cakephp-aws_utils

包简介

CakePHP Amazon Web Services Utilities

README 文档

README

AWSUtils provides a small set of wrappers and harnesses to integrate AWS services directly into your CakePHP applications

Requirements

The master branch has the following requirements:

  • CakePHP 2.2.0 or greater.
  • PHP 5.3.0 or greater.

Features

Installation

  • Clone/Copy the files in this directory into app/Plugin/AwsUtils
  • Ensure the plugin is loaded in app/Config/bootstrap.php by calling CakePlugin::load('AwsUtils');

Using Composer

Ensure require is present in composer.json. This will install the plugin into Plugin/AwsUtils:

{
    "require": {
        "cuppett/cakephp-aws_utils": "1.0.*"
    },
    "extra":
	{
	    "installer-paths":
	    {
	        "app/Plugin/AwsUtils": ["cuppett/cakephp-aws_utils"]
	    }
	}       
}

Quick Example

Integrating the session handler into core.php

use Aws\Common\Enum\Region;

$aws = array(
    'includes' => array(
        '_aws'
    ),
    'services' => array(
        'default_settings' => array(
            'params' => array(
                'region' => Region::US_EAST_1
            )
        )
    )
);

Configure::write('Session', array(
    'defaults' => 'database',
    'timeout' => 60,
    'handler' => array(
        'engine' => 'AwsUtils.DynamoDBSession',
        'aws' => $aws
    ),
    /* Avoid gc from web-app, manually sweep/clean later */
    'ini' => array('session.gc_probability' => 0)
));

Reporting issues

If you have a problem with AwsUtils please open an issue on GitHub.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-25