harrygulliford / laravel-firebird
Laravel 框架的 Firebird 数据库驱动程序
v3.2.0
2023-03-21 05:43 UTC
Requires
- php: ^7.4|^8.0
- illuminate/container: ^8.65|^9.33|^10.0
- illuminate/database: ^8.65|^9.33|^10.0
- illuminate/events: ^8.65|^9.33|^10.0
- illuminate/support: ^8.65|^9.33|^10.0
Requires (Dev)
- fakerphp/faker: ^1.15
- mockery/mockery: ^1.4
- orchestra/testbench: ^6.19|^7.0|^8.0
- phpunit/phpunit: ^9.5.10
README
此包为 Laravel 应用程序添加了对 Firebird PDO 数据库驱动程序的支持。
版本支持
- PHP 7.4, 8.0, 8.1, 8.2
- Laravel: 8.x, 9.x, 10.x
- Firebird 2.5, 3.0, 4.0
安装
您可以通过 composer 安装此包
composer require harrygulliford/laravel-firebird
该包将自动注册自身。
在您的 config/database.php
文件中使用 firebird
作为驱动程序声明连接
'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, ], ],
要在 Lumen 中注册此包,您还需要在您的 config/app.php
文件中的服务提供程序中添加以下行:$app->register(\HarryGulliford\Firebird\FirebirdServiceProvider::class);
限制
此包不打算支持数据库迁移,不应用于此用途。
致谢
许可协议
在 MIT 许可证下发布。