helloj/yii2-dbmaker

DBMaker Driver for Yii2 Framework.

Installs: 67

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Type:yii2-extension

1.1.1 2019-04-29 04:01 UTC

This package is not auto-updated.

Last update: 2020-11-27 22:20:24 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',
        ],
    ],
];