PHP code example of imper86 / dynamodb-client-bundle
1. Go to this page and download the library: Download imper86/dynamodb-client-bundle 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/ */
imper86 / dynamodb-client-bundle example snippets
return [
// ...
Imper86\DynamoDBClientBundle\DynamoDBClientBundle::class => ['all' => true],
];
use Imper86\DynamoDBClient\DynamoDBClientInterface;
use Imper86\DynamoDBClient\ValueObject\StringList;
final readonly class TableLister
{
public function __construct(
private DynamoDBClientInterface $dynamoDB,
) {}
public function list(): StringList
{
return $this->dynamoDB->listTables()->tableNames;
}
}