2017 © Pedro Peláez
 

cakephp-plugin cakephp-aws_utils

CakePHP Amazon Web Services Utilities

image

cuppett/cakephp-aws_utils

CakePHP Amazon Web Services Utilities

  • Sunday, January 25, 2015
  • by cuppett
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

CakePHP AWS Utilities

AWSUtils provides a small set of wrappers and harnesses to integrate AWS services directly into your CakePHP applications, (*1)

Requirements

The master branch has the following requirements:, (*2)

  • 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:, (*3)

{
    "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., (*4)

The Versions

25/01 2015

dev-master

9999999-dev https://github.com/cuppett/cakephp-aws_utils

CakePHP Amazon Web Services Utilities

  Sources   Download

MIT

The Requires

 

cakephp amazon aws session dynamodb

25/01 2015

1.0.1

1.0.1.0 https://github.com/cuppett/cakephp-aws_utils

CakePHP Amazon Web Services Utilities

  Sources   Download

MIT

The Requires

 

cakephp amazon aws session dynamodb