PHP code example of urbanindo / yii2-dynamodb
1. Go to this page and download the library: Download urbanindo/yii2-dynamodb 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/ */
urbanindo / yii2-dynamodb example snippets
return [
// ...
'components' => [
// ...
'dynamodb' => [
'class' => 'UrbanIndo\Yii2\DynamoDb\Connection',
'config' => [
//This is the config used for Aws\DynamoDb\DynamoDbClient::factory()
//See http://docs.aws.amazon.com/aws-sdk-php/v2/guide/service-dynamodb.html#factory-method
'credentials' => [
'key' => 'YOUR_AWS_ACCESS_KEY_ID',
'secret' => 'YOUR_AWS_SECRET_ACCESS_KEY',
],
'region' => 'ap-southeast-1',
]
]
],
];
php composer.phar