Download the PHP package henriknordstrom/laravel-pdo-odbc-patched without Composer
On this page you can find all versions of the php package henriknordstrom/laravel-pdo-odbc-patched. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download henriknordstrom/laravel-pdo-odbc-patched
More information about henriknordstrom/laravel-pdo-odbc-patched
Files in henriknordstrom/laravel-pdo-odbc-patched
Package laravel-pdo-odbc-patched
Short Description Laravel PDO ODBC with Laravel 12 fix
License MIT
Informations about the package laravel-pdo-odbc-patched
Laravel PDO ODBC Patched
A Laravel package that provides PDO ODBC connection drivers for Laravel 12, with special support for Snowflake database connections.
This project is forked from appsfortableau/laravel-pdo-odbc.
Description
This package extends Laravel's database functionality to support ODBC connections, with specific optimizations for Snowflake databases. It supports both ODBC connections and native Snowflake PDO driver connections.
Requirements
- PHP 8.0 or higher
- Laravel 12.0 or higher
- ODBC drivers for your database
- For Snowflake native connections: pdo_snowflake PHP extension
Installation
You can install the package via composer:
The package will automatically register its service provider.
Configuration
Add a new connection to your config/database.php file:
For general ODBC connections:
For Snowflake via ODBC:
For Snowflake via native PDO driver:
Environment Variables
You can set the following environment variables in your .env file:
Usage
Once configured, you can use the connection like any other Laravel database connection:
Features
- Support for general ODBC connections
- Specialized support for Snowflake databases
- Support for both ODBC and native Snowflake PDO driver connections
- Custom query grammar for Snowflake
- Custom schema grammar for Snowflake
- Custom processor for Snowflake
- Support for PHP 8.0+ with specialized statement classes
License
This package is open-sourced software licensed under the MIT license.
Author
- Henrik Nordstrom ([email protected])
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.