helloj / yii2-dbmaker
DBMaker Driver for Yii2 Framework.
Installs: 91
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.14
Requires (Dev)
- phpunit/phpunit: ~4.5
- yiisoft/yii2-dev: 2.0.x-dev
This package is not auto-updated.
Last update: 2025-02-01 20:53:01 UTC
README
This extension adds DBMaker database engine extension for the Yii framework 2.0.
This branch use the last developer version of Yii2 (dev-master)
Requirements
- DBMaker Client driver installed
- PHP module pdo_odbc
- DBMaker Database Server 5.4 or greater
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist "helloj/yii2-dbmaker:*"
or add
"helloj/yii2-dbmaker": "*"
to the require section of your composer.json.
Configuration
To use this extension, simply add the following code in your application configuration:
Using DBMaker:
return [ //.... 'components' => [ 'db' => [ 'class' => 'helloj\db\dbmaker\Connection', 'dsn' => 'odbc:DSN=MYDB;CLILCODE=UTF-8;ERRLCODE=en.UTF-8', 'username' => 'username', 'password' => 'password', ], ], ];