Firebird Extension for Yii 2 ¶
This extension adds Firebird database engine extension for the Yii framework 2.0.
Requirements ¶
At least Firebird version 2.0 is required. However, in order to use all extension features.
Not use BLOB types. See this bug
Installation ¶
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist edgardmessias/yii2-firebird
or add
"edgardmessias/yii2-firebird": "*"
to the require section of your composer.json.
Configuration ¶
To use this extension, simply add the following code in your application configuration:
return [
//....
'components' => [
'db' => [
'class' => 'edgardmessias\db\firebird\Connection',
'dsn' => 'firebird:dbname=tests/data/TEST.FDB',
'username' => 'username',
'password' => 'password',
],
],
];
help installing
Hi, I use yii 1.1 in a regular basis, now, I have to change to 2, becouse a hosting service uses a client of mysql not compatible with yii 1.1
I also have developments with firebird in yii 1.1, that I thought is good to migrate too. But I found there's no native support to firebird.
I try to use your extension, following the composer method, but I still should be missing something.
"Class Portal2\vendor\src\Connection does not exist"
ot whatever i write in class:
'class' => 'edgardmessias\db\firebird\Connection',
can you give me a clue?
thanks in advance
composer
Hi agarcilazo,
ls -la vendor/edgardmessias/yii2-firebird/src
???
Marcin
PS.
yii2-firebird it's very good code. I've use with FB2.1 and FB3.0. Works perfect.
help installing 2
Marcin Misiak, thanks a lot, i certainly use the composer but, (Ashemed) I use it wrong, it should be run in the "root" of the project, in order composer merges the necesary code in the vendor directory, at least in that way I made GII, for now, to generate the models :)
Again thanks for your time
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.