jacquestvanzuydam / laravel-firebird by jacquestvanzuydam

A Firebird database package for the Laravel Framework
136,620
63
22
Package Data
Maintainer Username: jacquestvanzuydam
Maintainer Contact: jtvanzuydam@gmail.com (Jacques van Zuydam)
Package Create Date: 2015-04-14
Package Last Update: 2020-08-18
Language: PHP
License: MIT
Last Refreshed: 2024-05-04 15:06:31
Package Statistics
Total Downloads: 136,620
Monthly Downloads: 214
Daily Downloads: 2
Total Stars: 63
Total Watchers: 22
Total Forks: 90
Total Open Issues: 5

laravel-firebird

To use this package:

Installation

Install the Firebird PDO driver for PHP.

Mariuz's Blog has a very good step by step on this: http://mapopa.blogspot.com/2009/04/php5-and-firebird-pdo-on-ubuntu-hardy.html

Install using composer:

composer require jacquestvanzuydam/laravel-firebird

For Laravel 5.1. support, please look at the 5.1-support branch.*

For Laravel 5.2. support, please look at the 5.2-sup branch.*

For Laravel 5.3. support, please look at the 5.3-support branch.*

For Laravel 5.4. support, please look at the 5.4-support branch.*

For Laravel 5.5. support, please look at the 5.5-support branch.*

Update the app/config/app.php, add the service provider:

'Firebird\FirebirdServiceProvider::class'.

You can remove the original DatabaseServiceProvider, as the original connection factory has also been extended.

Declare your connection in the database config, using 'firebird' as the connecion type. Other keys that are needed:

'firebird' => [
    'driver'   => 'firebird',
    'host'     => env('DB_HOST', 'localhost'),
    'database' => env('DB_DATABASE','/storage/firebird/APPLICATION.FDB'),
    'username' => env('DB_USERNAME', 'sysdba'),
    'password' => env('DB_PASSWORD', 'masterkey'),
    'charset'  => env('DB_CHARSET', 'UTF8'),
],

And add to your .env

DB_CHARSET=UTF8

If necessary, change the UTF8 to any other charset

This package is still in it's infancy and I wouldn't yet recommend using it for large projects, or without backing up your database regularly.

Any comments or contributions are welcome.