PHP code example of byte5digital / laravel-informix

1. Go to this page and download the library: Download byte5digital/laravel-informix 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/ */

    

byte5digital / laravel-informix example snippets


return [
    'informix' => [
        'driver'    => 'informix',
        'host'      => env('DB_IFX_HOST', 'localhost'),
        'database'  => env('DB_IFX_DATABASE', 'forge'),
        'username'  => env('DB_IFX_USERNAME', 'forge'),
        'password'  => env('DB_IFX_PASSWORD', ''),
        'service'  => env('DB_IFX_SERVICE', '11143'),
        'server'  => env('DB_IFX_SERVER', ''),
        'db_locale'   => 'en_US.819',
        'client_locale' => 'en_US.819',
        'db_encoding'   => 'GBK',
        'initSqls' => false,
        'client_encoding' => 'UTF-8',
        'prefix'    => ''
    ],
];
terminal
$ php artisan vendor:publish --provider="Byte5\LaravelInformix\InformixDBServiceProvider`