PHP code example of bogdik / yii2-oci8

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

    

bogdik / yii2-oci8 example snippets


php composer.phar 

return [	
	'components' => [
		....
		'db' => [
                    'class' => 'bogdik\oci8\Oci8DbConnection',
                    'dsn' => 'oci8:dbname=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SID=xe)));charset=AL32UTF8;',
                    'username' => 'yourdatabaseschemaname',
                    'password' => 'databasepassword',
                    'attributes' => []
                ],
	],
];