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

1.1.1 2019-04-29 04:01 UTC

This package is not auto-updated.

Last update: 2024-04-13 16:34:48 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',
        ],
    ],
];