li9ht / yii2-informix
A Yii2 driver for informix
dev-master / 1.0.x-dev
2015-06-03 02:51 UTC
Requires
- php: >=5.4.0
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-04-26 02:16:54 UTC
README
Pdo informix driver for Yii2 framework
Requirements
- PHP module pdo_informix;
- Informix Client SDK installed
- Yii2 framework
How to install
- add to composer.json
- because package is still in development, set minimum-stability = dev and prefer-stable = true
"require":{ "li9ht/yii2-informix": "1.0.*@dev" }, "minimum-stability": "dev", "prefer-stable": true,
- when package is finish installed add the following line to your APPROOT/config/web.php
<?php 'components' => array( 'db' => [ 'class' => 'li9ht\yii2\informix\Connection', 'driverName' => 'informix', 'dsn' => 'informix:DSN=inf_db_odbc', ], ),
Unit Test
- Copy test folder to your yiiApp root folder.
- Edit connection dsn in test/TestCase.php file
- Run
phpunit --bootstrap bootstrap.php ActiveRecordTest.php