harrygulliford / laravel-firebird

Firebird database driver for the Laravel Framework
66 stars 30 forks source link
firebird laravel php

Firebird for Laravel

Latest Stable Version Total Downloads Tests License

This package adds support for the Firebird PDO Database Driver in Laravel applications.

Version Support

Installation

You can install the package via composer:

composer require harrygulliford/laravel-firebird

The package will automatically register itself.

Declare the connection within your config/database.php file by using firebird as the driver:

'connections' => [

    'firebird' => [
        'driver'   => 'firebird',
        'host'     => env('DB_HOST', 'localhost'),
        'port'     => env('DB_PORT', '3050'),
        'database' => env('DB_DATABASE', '/path_to/database.fdb'),
        'username' => env('DB_USERNAME', 'sysdba'),
        'password' => env('DB_PASSWORD', 'masterkey'),
        'charset'  => env('DB_CHARSET', 'UTF8'),
        'role'     => null,
    ],

],

To register this package in Lumen, you'll also need to add the following line to the service providers in your config/app.php file: $app->register(\HarryGulliford\Firebird\FirebirdServiceProvider::class);

Limitations

This package does not intend to support database migrations and it should not be used for this use case.

Credits

License

Licensed under the MIT license.