Giter Club home page Giter Club logo

laramix's Introduction

Informix Driver Package for Laravel

StyleCI Software License Packagist Downloads Packagist Downloads

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: ^7.2
  • laravel/framework: ^6.0|^7.0
  • guzzlehttp/guzzle: ^6.0|^7.0
  • illuminate/support: ^6.0|^7.0
  • illuminate/database: ^6.0|^7.0
  • illuminate/pagination: ^6.0|^7.0
  • illuminate/encryption: ^6.0|^7.0

Installation

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

composer require archytech/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 ...
     */
    Archytech\Laravel\Ifx\InformixServiceProvider::class,
]

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

php artisan vendor:publish --provider="Archytech\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=

## Environment ##
INFORMIXDIR=/opt/IBM/informix
INFORMIXSERVER=ol_informix07
LD_LIBRARY_PATH=${INFORMIXDIR}/lib/:${INFORMIXDIR}/lib/cli:${INFORMIXDIR}/esql
PATH=${PATH}:${INFORMIXDIR}/bin:${INFORMIXDIR}/lib

Documentation and Usage

Visit Database: Getting Started

License

Licensed under the MIT License.

laramix's People

Contributors

archytech99 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.