quanvhframgia / laravel-dynamodb-migrations by quanvh

Create Migrations (version control) for DynamoDB
17,516
7
1
Package Data
Maintainer Username: quanvh
Maintainer Contact: vo.hong.quan@framgia.com (Vo Hong Quan)
Package Create Date: 2017-01-10
Package Last Update: 2017-07-10
Language: PHP
License: Unknown
Last Refreshed: 2024-11-18 03:04:30
Package Statistics
Total Downloads: 17,516
Monthly Downloads: 305
Daily Downloads: 15
Total Stars: 7
Total Watchers: 1
Total Forks: 3
Total Open Issues: 0

Laravel Package: Migrations for DynamoDB

Install

  • Composer install
composer require quankim/laravel-dynamodb-migrations
  • Install service provider
// config/app.php
    'providers' => [
        ...
        QuanKim\LaravelDynamoDBMigrations\DynamoDBMigrationServiceProvider::class
        ...
    ];
  • Config DynamoDB
// config/aws.php
    use Aws\Laravel\AwsServiceProvider;
    
    return [
    
        /*
        |--------------------------------------------------------------------------
        | AWS SDK Configuration
        |--------------------------------------------------------------------------
        |
        | The configuration options set in this file will be passed directly to the
        | `Aws\Sdk` object, from which all client objects are created. The minimum
        | required options are declared here, but the full set of possible options
        | are documented at:
        | http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html
        |
        */
        'credentials' => [
            'key'    => env('AWS_ACCESS_KEY_ID', ''),
            'secret' => env('AWS_SECRET_ACCESS_KEY', ''),
        ],
        'region' => env('AWS_REGION', 'us-east-1'),
        'version' => 'latest',
        'ua_append' => [
            'L5MOD/' . AwsServiceProvider::VERSION,
        ],
        'endpoint' => env('AWS_ENDPOINT', ''),
        'http' => [
            'verify' => false,
        ]
    ];