codeapi/laravel-redshift

Fork from merlijnbuit/laravel-redshift and YuK1Game/laravel-redshift. This is a package to handle Redshift in Laravel like eloquent.
3,767 1
Install
composer require codeapi/laravel-redshift
License:MIT
Last Updated:Feb 16, 2023
Links: GitHub  ·  Packagist
Maintainer: codeapi

Laravel Redshift

Latest Version on Packagist Total Downloads Build Status StyleCI

Redshift is compatible with Postgresql. However, not everything in Postgresql is compatible, and there are some data types that cannot be used. This library exists to absorb them and make it possible to handle Redshift on Laravel cleanly.

Installation

Via Composer

$ composer require codeapi/laravel-redshift

Usage

Add the Redshift driver to config/database.php.

'connections' => [
  'redshift' => [
    'driver' => 'redshift',
      'host' => env('AWS_REDSHIFT_HOST', '127.0.0.1'),
      'port' => env('AWS_REDSHIFT_PORT', '5439'),
      'database' => env('AWS_REDSHIFT_DATABASE', 'redshit'),
      'username' => env('AWS_REDSHIFT_USERNAME', 'root'),
      'password' => env('AWS_REDSHIFT_PASSWORD', ''),
    ],
  ],
]

Then, write the connection information in the .env file.

DB_CONNECTION=redshift
AWS_REDSHIFT_HOST=
AWS_REDSHIFT_PORT=
AWS_REDSHIFT_DATABASE=
AWS_REDSHIFT_USERNAME=
AWS_REDSHIFT_PASSWORD=

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits

License

license. Please see the license file for more information.

Related Packages

customergauge/redshift

Redshift Connector for Laravel with AWS Secret Manager

3,542 1
php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the...

53,312 160
laravel-ja/laravel

The Laravel Framework.

5,667 17
kavenegar/laravel

laravel 4 and 5 kavenegar integration

366,462 86
reliese/laravel

Reliese Components for Laravel Framework code generation.

3,954,390 1,705