danidoble / laravel-firebird
Firebird 数据库驱动程序,适用于 Laravel 框架
v4.0.1
2024-06-20 17:45 UTC
Requires
- php: ^8.1
- ext-pdo: *
- illuminate/container: ^10.0|^11.0
- illuminate/database: ^10.0|^11.0
- illuminate/events: ^10.0|^11.0
- illuminate/support: ^10.0|^11.0
Requires (Dev)
- laravel/pint: ^1.14
- orchestra/testbench: ^8.21|^v9.0.0
- pestphp/pest: ^2.34
This package is auto-updated.
Last update: 2024-09-22 16:57:08 UTC
README
此包为 Laravel 应用程序添加了 Firebird PDO 数据库驱动程序的支持。
版本支持
- PHP 8.1, 8.2, 8.3
- Laravel: 10.x, 11.x
- Firebird 2.5, 3.0, 4.0
安装
您可以通过 composer 安装此包
composer require danidoble/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, ], ],
限制
此包不打算支持数据库迁移,不应用于此用途。
鸣谢
许可协议
许可协议为 MIT。