mehedimi / laravel-dynamodb
A package for Laravel to communicate DynamoDB
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^7.3|^8.0
- ext-json: *
- aws/aws-sdk-php: ^3
- illuminate/database: ^6|^7|^8
- illuminate/pagination: ^6|^7|^8
- illuminate/support: ^6|^7|^8
Requires (Dev)
- mockery/mockery: ^1.4
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^5.3
This package is auto-updated.
Last update: 2024-12-11 16:19:43 UTC
README
Use aws dynamodb as a database on Laravel
Installation
composer require mehedimi/laravel-dynamodb
Configuration
Add dynamodb configs to config/database.php:
'connections' => [
'dynamodb' => [
'driver' => 'dynamodb',
'region' => env('AWS_DEFAULT_REGION'),
'access_key' => env('AWS_ACCESS_KEY_ID'),
'secret_key' => env('AWS_SECRET_ACCESS_KEY'),
'endpoint' => env('AWS_ENDPOINT'),
],
...
],
Use general raw PHP project
<?php $connection = new \Mehedi\LaravelDynamoDB\DynamoDBConnection([ // Configuration goes here ]); $connection->table('Users')->query();
For more documentation click here