PHP code example of coraxster / laravel-odbc
1. Go to this page and download the library: Download coraxster/laravel-odbc 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/ */
coraxster / laravel-odbc example snippets
# ... config/db.php
'hive' => [
'driver' => 'odbc',
'dsn' => 'DRIVER={YOUR_ODBC_DRIVER};Host=host.env;PORT=10000;Schema=default;',
'username' => '',
'password' => ''
],
# ... where {YOUR_ODBC_DRIVER} is driver from odbcinst.ini or path to driver.so