Download the PHP package cooperl/laravel-ibmi without Composer
On this page you can find all versions of the php package cooperl/laravel-ibmi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cooperl/laravel-ibmi
More information about cooperl/laravel-ibmi
Files in cooperl/laravel-ibmi
Package laravel-ibmi
Short Description laravel-ibmi is a simple DB2 & Toolkit for IBMi service provider for Laravel. It provides DB2 Connection by extending the Illuminate Database component of the laravel framework. Plus it also provides Toolkit for IBMi so that you can access IBMi resources with same credentials.
License MIT
Informations about the package laravel-ibmi
laravel-ibmi
laravel-ibmi is a simple DB2 & Toolkit for IBMi service provider for Laravel. It provides DB2 Connection by extending the Illuminate Database component of the laravel framework. Plus it also provides Toolkit for IBMi so that you can access IBMi resources with same credentials.
- Installation
- Configuration
- Usage
Installation
Add laravel-ibmi to your composer.json file:
Use composer to install this package.
Configuration
There are two ways to configure laravel-ibmi. You can choose the most convenient way for you. You can put your DB2 credentials into app/config/database.php
(option 1) file or use package config file which you can be generated through command line by artisan (option 2).
Option 1: Configure DB2 using app/config/database.php
file
Simply add this code at the end of your app/config/database.php
file:
driver setting can be:
- 'db2_ibmi_odbc' for IBMi ODBC connection
- 'db2_ibmi_ibm' for IBMi PDO_IBM connection
- 'db2_zos_odbc' for zOS ODBC connection
- 'db2_expressc_odbc for Express-C ODBC connection
Then if driver is 'db2_*_odbc', database must be set to ODBC connection name. if driver is 'db2_ibmi_ibm', database must be set to IBMi database name (WRKRDBDIRE).
Option 2: Configure DB2 using package config file
Run on the command line from the root of your project:
Set your laravel-db2 credentials in app/config/db2.php
the same way as above
Usage
Database usage
consult the Laravel framework documentation.
Toolkit for IBMi usage :
This package ships with a facade called TS
for ToolkitService which is the name of the main class.
here is an example of how to use this facade:
If you want to choose another connection than the default one just do this:
for more details please consult PHP XMLSERVICE Toolkit documentation.
All versions of laravel-ibmi with dependencies
zendtech/ibmitoolkit Version ^1.9.0
cooperl/laravel-db2 Version ^9.0