PHP code example of pfazzi / dynamo-db-session

1. Go to this page and download the library: Download pfazzi/dynamo-db-session library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

pfazzi / dynamo-db-session example snippets


$tableName = 'some-session-table-name';

$sdk = new Aws\Sdk([
    'region'   => 'eu-central-1',
    'version'  => 'latest',
]);

$dynamodb = $sdk->createDynamoDb();

$sessionTable = new Pfazzi\Session\DynamoDb\SessionTable($dynamodb, $tableName);
$sessionTable->create();