coodde / php-trino-client
Simple reusable modern PHP Trino client library
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/coodde/php-trino-client
Requires
- php: >=8.0
- ext-curl: *
README
A simple, reusable PHP client library for Trino that supports:
- Sync queries
- Streaming large datasets (memory-efficient)
- Async query execution
- Optional authentication (Basic / Bearer JWT)
- Configurable catalog, schema, timeout
Designed for PHP 8+, lightweight, and easy to integrate into any project.
Installation
Use Composer to install:
composer require coodde/php-trino-client
Features
- Lightweight, PSR-4 autoloaded
- Exception handling via TrinoException
- Configurable catalog, schema, timeout
- Sync + streaming + async query execution
- Optional authentication
Examples
You can find sample code in the directory called "examples"