Installs: 76

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:cakephp-plugin

1.0.2 2025-05-31 09:06 UTC

This package is auto-updated.

Last update: 2025-05-31 13:10:51 UTC


README

Config

Config/core.php

    Configure::write('Session', [
        'defaults' => 'php',
        'handler' => [
            'engine' => 'Aws.DynamoDbSession',
            'table_name' => 'DYNAMODB_TABLE_NAME'
        ],
        'timeout' => 1440,
        'ini' => [
            'session.cookie_lifetime' => 0,
            'session.gc_maxlifetime' => 2580000,
            'session.gc_probability' => 1,
            'session.gc_divisor' => 100,
        ],
    ]);
/*
 * Aws
 */
    Configure::write('Aws', [
        'region' => 'ap-northeast-1',
        'version' => 'latest',
    ]);

Config/email.php

class EmailConfig
{
    /**
     * Default email profile values.
     *
     * @var array
     */
    public $default = [
        'transport' => 'Aws.AmazonSesApi',
        'from' =>['example@example.com',
        'charset' => 'utf-8',
        'headerCharset' => 'utf-8',
    ];
}

S3 StreamWrapper

$client = new Aws\S3\S3Client(Configure::read('Aws'));
$client->registerStreamWrapperV2();

or

CakePlugin::load('Aws', [
    'bootstrap' => true,
]);