PHP code example of marcinmisiak / yii2-firebird

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

    

marcinmisiak / yii2-firebird example snippets


return [
    //....
    'components' => [
        'db' => [
            'class' => 'marcinmisiak\db\firebird\Connection',
            'dsn' => 'firebird:dbname=localhost:/tmp/TEST.FDB;charset=UTF8',
            'username' => 'username',
            'password' => 'password',
            'enableSchemaCache' => true,
            'schemaCacheDuration' => 43200,
            'schemaCache' => 'cache',
            'emulatePrepare' => true,
            'attributes' => [
                PDO::ATTR_PERSISTENT => true
            ],
        ],
    ],
];
bash
php composer.phar