Download the PHP package yoramdelangen/laravel-pdo-odbc without Composer

On this page you can find all versions of the php package yoramdelangen/laravel-pdo-odbc. 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-pdo-odbc

ODBC/Snowflake Integration for Laravel Framework

This repository provides seamless integration of ODBC/Snowflake with Laravel Eloquent. It aims to create a comprehensive ODBC package for Laravel, while also functioning as a standalone solution.

Unlike the odbc_* functions, this package utilizes the PDO class, resulting in smoother and more convenient integration with Eloquent.

The primary goal of this package is to offer a standardized approach to connect with an ODBC connection. It supports custom grammars and schemas to accommodate various ODBC connections, such as Snowflake.

How to Install

Before proceeding, ensure that you have PHP version 8.x installed on your system.

To add the package to your project, run the following command:

By default, the package will be automatically registered through the package:discover command.

Alternatively, you can manually register the service provider in the app.php file:

If you intend to use the snowflake_pdo PHP extension, please follow the installation guide provided here to set it up.

Starting from version 1.2.0, the package includes support for snowflake_pdo, but it will still function without the Snowflake extension (via ODBC).

Configuration

The available driver flavors are:

Snowflake Specific environment variables

You have the option to customize the Snowflake driver using the following parameters:

Usage

Configuring the package is straightforward:

Add a Database Configuration to database.php

Starting from version 1.2, we recommend using the native Snowflake extension instead of ODBC, but we'll keep supporting it.

You have multiple ways to configure the ODBC connection:

  1. Simple configuration using DSN only:

    or, if you don't have a datasource configured within your ODBC Manager:

    Note: The DSN Driver parameter can either be an absolute path to your driver file or the name registered within the odbcinst.ini file/ODBC manager.

  2. Dynamic configuration:

    All fields, except for driver, odbc_driver, options, username, and password, will be dynamically added to the DSN connection string.

    Note: The DSN odbc_driver parameter can either be an absolute path to your driver file or the name registered within the odbcinst.ini file/ODBC manager.

Eloquent ORM

You can use Laravel, Eloquent ORM, and other Illuminate components as usual.

Troubleshooting and more info

We have documented all weird behavious we encountered with the ODBC driver for Snowflake. In case of trouble of weird messages, checkout the following links:

Customization


All versions of laravel-pdo-odbc with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
illuminate/database Version >= 7.0
illuminate/support Version >= 7.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 yoramdelangen/laravel-pdo-odbc contains the following files

Loading the files please wait ....