PHP code example of helloj / yii2-dbmaker

1. Go to this page and download the library: Download helloj/yii2-dbmaker library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

helloj / yii2-dbmaker example snippets


return [
    //....
    'components' => [
        'db' => [
            'class'         => 'helloj\db\dbmaker\Connection',
            'dsn'           => 'odbc:DSN=MYDB;CLILCODE=UTF-8;ERRLCODE=en.UTF-8',
            'username'      => 'username',
            'password'      => 'password',
        ],
    ],
];
bash
php composer.phar