1. Go to this page and download the library: Download nsmithuk/dynamo-queue-php 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/ */
nsmithuk / dynamo-queue-php example snippets
// First create an instance of the DynamoDbClient from Amazon’s SDK
$dynamoDb = new \Aws\DynamoDb\DynamoDbClient([
'version' => '2012-08-10',
'region' => '<region>',
'credentials' => [
'key' => '<key>',
'secret' => '<secret>',
]
]);
// Create an instance of the DynamoQueue client
$queue = new \DynamoQueue\Queue\Client( $dynamoDb, [ 'table_name' => '<table name>' ] );