vcromeiro / laravel-firebird
Firebird database driver for the Laravel Framework
Requires
- php: >=7.1
- illuminate/container: ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- illuminate/database: ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- illuminate/events: ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
- illuminate/support: ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0
Requires (Dev)
- mockery/mockery: ~1.0
- orchestra/testbench: ~3.7|^4.0|^5.0|^6.0
- phpunit/phpunit: ~7.0|^8.0|^9.0
README
This package adds support for the Firebird PDO driver in Laravel applications. Support for Laravel 5.5 to 8.x with PHP 7.1+ and Firebird 1.5 or 2.5
Installation
You can install the package via composer:
composer require vcromeiro/laravel-firebird
The package will automatically register itself.
Declare the connection within your config/database.php
file, 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'), 'version' => env('DB_VERSION', '2.5'), // Supported versions: 2.5, 1.5 '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(\Firebird\FirebirdServiceProvider::class);
Limitations
This package does not support database migrations and it should not be used for this use case.
Credits
This package was originally forked from acquestvanzuydam/laravel-firebird with enhancements from sim1984/laravel-firebird and harrygulliford/laravel-firebird.
License
Licensed under the MIT licence.