mkrohn / laravel-odbc-informix
ODBC informix specific integration for Laravel framework.
Fund package maintenance!
Other
Installs: 1 021
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 0
Forks: 1
Open Issues: 2
Requires
- php: ^5.3.3 || >=7.0
- illuminate/database: ~5.1 || >= 6.0
- illuminate/support: ~5.1 || >= 6.0
README
This integration allows the use of odbc_* php function with Laravel framework instead of PDO.
It emulates PDO class used by Laravel.
This is a fork of the project abram/laravel-odbc, but customized for informix.
# How to install
composer require mkrohn/laravel-odbc-informix
To add source in your project
# Usage Instructions
It's very simple to configure:
1) Add database to database.php file
'odbc-connection-name' => [ 'driver' => 'odbc', 'dsn' => 'OdbcConnectionName', 'database' => 'DatabaseName', 'odbc' => true, 'host' => '127.0.0.1', 'username' => 'username', 'password' => 'password' 'options' => [ 'processor' => Mkrohn\Odbc\Informix\Query\Processors\InformixProcessor::class, 'grammar' => [ 'query' => Mkrohn\Odbc\Informix\Query\Grammars\InformixGrammar::class, 'schema' => Mkrohn\Odbc\Informix\Schema\Grammars\InformixGrammar::class ] ] ]
# Eloquent ORM
You can use Laravel, Eloquent ORM and other Illuminate's components as usual.
# Facade $books = DB::connection('odbc-connection-name')->table('books')->where...; # ORM $books = Book::where...->get();