Download the PHP package idl-bnl-dev/db2-driver without Composer

On this page you can find all versions of the php package idl-bnl-dev/db2-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package db2-driver

[]()

DB2 for IBM iSeries Laravel Driver

Latest Version on Packagist Test Coverage

This package allows you to use Laravel's query builder and eloquent with DB2 for IBM iSeries by extending the Illuminate Database component of the Laravel framework. Originally forked from cooperl22/laravel-db2.

Requirements

Installation

The package is open source and available on Packagist. No extra repository configuration is needed.

Install it via composer:

The service providers are registered automatically through Laravel's package discovery.

Configuration

Add a new connection in database.php:

Note: You can specify the connection name, but the driver must be 'db2'

Note: Be sure to define the appropriate keys in .env.

Usage

Once the connection is configured, use it like any other Laravel connection.

Query builder

Eloquent

Point a model at the DB2 connection:

Or make it the default by setting DB_CONNECTION=myDB2Connection in .env.

Schema builder

Pagination and offsets

Older IBM i releases do not support OFFSET natively. With 'offset_compatibility_mode' => true (the default) limits use FETCH FIRST n ROWS ONLY and offsets are emulated with a wrapped ROW_NUMBER() query, so skip()/offset() and paginate() work on those systems. Set it to false if your system supports LIMIT/OFFSET natively.

Read-only mode

Publish the package config:

Then set DB2_READONLY=true (or 'readonly' => true in config/db2-driver.php) to block all writes. Inserts, updates/merges, deletes and schema changes (CREATE, ALTER, DROP, RENAME, TRUNCATE) throw IDL\DB2Driver\Exceptions\ReadOnlyModeException before reaching the database. Selects are unaffected.

Set DB2_READONLY_ALLOW_UPDATES=true as well to permit UPDATE/MERGE statements while everything else stays blocked.

These are defaults for every db2 connection; readonly and readonly_allow_updates keys on a connection in config/database.php override them.

Troubleshooting

Testing

Contributing

Issues and pull requests are welcome on GitHub. Please run the tests and static analysis before submitting a PR.

Other Resources

License

This package is released under the MIT License. Please see License File for more information.


All versions of db2-driver with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
spatie/laravel-package-tools Version ^1.13.0
illuminate/contracts Version ^13.0
illuminate/support Version ^13.0
illuminate/database Version ^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package idl-bnl-dev/db2-driver contains the following files

Loading the files please wait ...