PHP code example of dungang / yii2-mysqli

1. Go to this page and download the library: Download dungang/yii2-mysqli 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/ */

    

dungang / yii2-mysqli example snippets


return [
    'class' => 'yii\db\Connection',
    'pdoClass'=> 'dungang\mysqli\PDO_Mysql',
    'username' => 'root',
    'password' => 'root',
    'charset' => 'utf8',
    'tablePrefix' => 'vint_',
    'dsn' => 'mysql:host=localhost;port=3306;dbname=db_test',
];