Informix Driver for Laravel

v1.0.1 2021-01-10 11:23 UTC

This package is auto-updated.

Last update: 2024-04-26 02:34:01 UTC


README

laramix is an Informix Driver Package for Laravel Framework - thanks to @taylorotwell. laramix is an extension of Illuminate/Database that uses either the PDO extension wrapped into the PDO namespace.

Requirements

  • php: ^8.0
  • laravel/framework: ^6.0|^8.0
  • guzzlehttp/guzzle: ^6.0|^8.0
  • illuminate/support: ^6.0|^8.0
  • illuminate/database: ^6.0|^8.0
  • illuminate/pagination: ^6.0|^8.0
  • illuminate/encryption: ^6.0|^8.0

Installation

Require this package in the composer.json of your laravel project. This will download the requirements package:

composer require miguelalejandroff/laramix

Once Composer has installed or updated, you need to register Informix Driver. Open up config/app.php and find the providers key and add:

'providers' => [
    /*
     * Package Service Providers ...
     */
    Miguelalejandroff\Laravel\Ifx\InformixServiceProvider::class,
]

Finally you need to publish a configuration file by running the following artisan command.

php artisan vendor:publish --provider="Miguelalejandroff\Laravel\Ifx\InformixServiceProvider"

This will copy the configuration file to config/informix.php

Configure .env files

Add this configuration to .env file in the root of your project:

# Informix #
DB_CONNECTION=informix
DB_IFX_HOST=127.0.0.1
DB_IFX_SERVICE=9188
DB_IFX_DATABASE=laravel
DB_IFX_USERNAME=informix
DB_IFX_PASSWORD=
DB_IFX_SERVER=ol_informix07
DB_IFX_URI=
DB_IFX_TOKEN=

Documentation and Usage

Visit Database: Getting Started

License

Licensed under the MIT License.