定制 zaghyr/eloquent-dynamodb 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zaghyr/eloquent-dynamodb

最新稳定版本:v0.3.0

Composer 安装命令:

composer require zaghyr/eloquent-dynamodb

包简介

DynamoDb with Eloquent and Migrations

README 文档

README

Install

  • Composer install
composer require zaghyr/eloquent-dynamodb
  • Install service provider
// config/app.php
    'providers' => [
        ...
        Zaghyr\EloquentDynamoDbServiceProvider::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,
        ],
        'migrations-table' => env('DYNAMODB_MIGRATIONS_TABLE', 'migrations')
    ];

统计信息

  • 总下载量: 1.26k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-01