Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mehedimi/laravel-dynamodb

Laravel DynamoDB is a package for laravel to use dynamodb as a database driver
https://github.com/mehedimi/laravel-dynamodb

aws dynamodb eloquent laravel laravel-dynamodb laravel-framework php

Last synced: 3 months ago
JSON representation

Laravel DynamoDB is a package for laravel to use dynamodb as a database driver

Awesome Lists containing this project

README

        

# Laravel DynamoDB
Use aws dynamodb as a database on Laravel

![Banner](https://banners.beyondco.de/Laravel%20DynamoDB.png?theme=light&packageManager=composer+require&packageName=mehedimi%2Flaravel-dynamodb&pattern=architect&style=style_1&description=Use+aws+dynamodb+on+Laravel&md=1&showWatermark=0&fontSize=100px&images=document-search)

### Installation
```shell
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
table('Users')->query();
```

For more documentation [click](https://github.com/mehedimi/laravel-dynamodb/wiki) here