2017 © Pedro Peláez
 

source firebirddb

Yii 2 Firebird DB driver

image

srusakov/firebirddb

Yii 2 Firebird DB driver

  • Tuesday, June 10, 2014
  • by srusakov
  • Repository
  • 2 Watchers
  • 5 Stars
  • 127 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

yii2-firebirddb - Firebird Adapter for Yii 2.x

This is an updated version of the adapter YiiFirebird originally posted by idlesign. It has been enhanced to be compatible with yii2., (*1)

This version is marked 2.0, (*2)

Requirements

  • PHP 5.4
  • PDO_Firebird extension enabled.
  • Firebird 2.5 (not tested on previous versions)
  • Yii 1.1.9

Installation

  • Modify your composer.json:
...
"require": {
    "srusakov/firebirddb": "*"
    },
  "repositories":[{
      "type":"git",
      "url":"http://github.com/srusakov/yii2-firebirddb",
  }]
...
  • Modify your common/config/main.php:
return [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'firebird:dbname=HOSTNAME:DATABASENAME.fdb;charset=UTF8',
            'username' => 'sysdba',
            'password' => 'masterkey',
            'charset' => 'utf8',
            'pdoClass' => 'srusakov\firebirddb\PDO',
            'schemaMap' => [
                                'firebird' => 'srusakov\firebirddb\Schema', // FireBird
                            ],
        ],
]

Restriction

Some restrictions imposed by Database: * Rename tables * Using DDL and DML statement in the same transaction and the same table. (Ex: Create table and insert)., (*3)

Caution!

This driver is not well tested in production ebvironment! Use it at your own risk!, (*4)

Thanks to

@idlesign, @robregonm, @edgardmessias, @mr-rfh, @mlorentz75, (*5)

The Versions

10/06 2014

dev-master

9999999-dev http://github.com/srusakov/yii2-firebirddb

Yii 2 Firebird DB driver

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

database yii2 driver firebird