autodoc / dynamodb
DynamoDb wrapper for your Laravel model and helpers
dev-master
2016-06-21 12:03 UTC
Requires
- aws/aws-sdk-php: ~3.0
- illuminate/database: ~5.2
- illuminate/support: ~5.2
- paragonie/random_compat: ^1.1
This package is not auto-updated.
Last update: 2024-11-15 20:21:35 UTC
README
Supports all key types - primary hash key and composite keys.
Install
-
Composer install
composer require autodoc/dynamodb:0.1.x
-
Install service provider:
// config/app.php 'providers' => [ ... Autodoc\DynamoDb\DynamoDbServiceProvider::class, ... ];
-
Put DynamoDb config in
config/services.php
:// config/services.php ... 'dynamodb' => [ 'region' => env('DYNAMODB_REGION'), 'version' => env('DYNAMODB_VERSION'), 'scheme' => env('DYNAMODB_SCHEME'), 'credentials' => [ 'key' => env('DYNAMODB_KEY'), 'secret' => env('DYNAMODB_SECRET'), ] ], ...
Usage
- Extends your model with
Autodoc\DynamoDb\DynamoDbModel
.
Requirements
Laravel ^5.1
License
MIT
Author and Contributors
- Diego Ferreira Caetano