Skip to content

jturazzi/laravel-database-informix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Logo

Total Downloads Latest Stable Version License

Laravel Database Informix is a Laravel Framework package designed to seamlessly integrate with the Informix Database Driver. It extends Illuminate/Database and works smoothly with the latest versions of Laravel. Tested on Laravel 10 and 11.

This work is inspired by the repository: https://github.com/llaiajiale/laravel-ifx

Prerequisites

Before installing this package, make sure you have the Informix SDK installed on your system. The Informix SDK is required for communication with the Informix database. You can download the SDK from the official IBM website.

Additionally, you'll need to ensure that the PDO Informix extension is compiled and installed in your PHP environment. This extension provides the necessary functionality for PHP to communicate with Informix databases. You can find more information about the PDO Informix extension here.

For simplified installation of the Informix SDK and PDO extension, check out the scripts available in this repository.

Installation

To include Laravel-database-informix in your project, run the following command:

composer require jturazzi/laravel-database-informix

After Composer has finished installing the package, you'll need to register Informix DB.

For Laravel 10 and earlier versions:

Go to config/app.php, find the providers packages array, and add:

/*
* Package Service Providers...
*/
jturazzi\Informix\InformixDBServiceProvider::class,

For Laravel 11 and newer versions:

Go to bootstrap/providers.php and add:

return [
    App\Providers\AppServiceProvider::class,
    jturazzi\Informix\InformixDBServiceProvider::class,
];

Finally, publish the configuration file with the following Artisan command:

php artisan vendor:publish

This command will duplicate the configuration file into config/informix.php.

Configure the Informix database connection details in this file.

Contribution

We welcome community contributions. Fork, make changes, submit a pull request.

License

This project is licensed under the MIT License.