1. Go to this page and download the library: Download dbmaker/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/ */
dbmaker / laravel-odbc example snippets
'dbmaker' => [
'driver' => 'odbc',
'dsn' => 'odbc:DSN=DBNAME',
'database' => 'DBNAME',
'host' => 'localhost',
'username' => 'username',
'password' => 'password',
'options' => [
'idcap' => 1 //please set the value same as your server db_idcap
]
]