/yii2-firebird

Firebird connector for Yii2 framework

Primary LanguagePHPOtherNOASSERTION

Firebird Extension for Yii 2

Latest Stable Version Total Downloads Latest Unstable Version License

This branch use last stable version of Yii2 (dev)

This extension adds Firebird database engine extension for the Yii framework 2.0.

Yii2 Build Status Dependency Status Reference Status Code Coverage Scrutinizer Code Quality

Requirements

At least Firebird version 2.0 is required. However, in order to use all extension features.

Not work with Firebird 3.0 See this bug

Unsupported

Functions not supported by the Firebird database:

  • Rename Table
  • Check Integrity
  • BLOB data type for pdo_firebird <= 7.0.13 - 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=localhost:/tmp/TEST.FDB;charset=ISO8859_1',
            'username' => 'username',
            'password' => 'password',
        ],
    ],
];