Download the PHP package kalel1500/laravel-db2-raw without Composer

On this page you can find all versions of the php package kalel1500/laravel-db2-raw. 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 laravel-db2-raw

laravel-db2-raw

Total Downloads Latest Stable Version License

laravel-db2-raw is a simple helper to execute raw DB2 queries in Laravel.

This package provides a thin wrapper around the native ibm_db2 functions (db2_connect, db2_exec, db2_fetch_assoc, db2_close) to make it easier to run raw DB2 SQL queries in Laravel without using Eloquent.


Installation

Requirements

Installation

Install laravel-db2-raw in your Laravel app with Composer:

Configuration

The following environment variables are used by the default connection:

This is the default configuration file (config/db2_raw.php):

You can also publish the configuration file (config/db2_raw.php) with the following command

Usage

Basic

To launch a query you can use the Db2 facade:

The exec method receives the full SQL string and returns an array of associative arrays. Column names are normalized to lowercase. Currently, parameter binding (e.g. using ?) is not supported: you must build the full SQL statement yourself.

Be careful when building SQL strings with user input to avoid SQL injection vulnerabilities.

Defining additional connections

You can also define additional connections in the configuration file:

And before executing the query you can select which connection to use:

License

laravel-db2-raw is open-sourced software licensed under the GNU General Public License v3.0.


All versions of laravel-db2-raw with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
ext-ibm_db2 Version *
php Version ^8.2
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 kalel1500/laravel-db2-raw contains the following files

Loading the files please wait ...