Skip to content

Added PHP native PDO client (pdo_duckdb)#7021

Open
thomas-0816 wants to merge 3 commits into
duckdb:mainfrom
thomas-0816:pdo-duckdb-php
Open

Added PHP native PDO client (pdo_duckdb)#7021
thomas-0816 wants to merge 3 commits into
duckdb:mainfrom
thomas-0816:pdo-duckdb-php

Conversation

@thomas-0816

@thomas-0816 thomas-0816 commented Jul 15, 2026

Copy link
Copy Markdown

I created a native PHP extension in C to support the PHP PDO interface: https://github.com/thomas-0816/pdo-duckdb-php

It would be nice if it could be listed on the website under "Client APIs".

PDO is used by all big frameworks (Symfony/Doctrine, Laravel/Eloquent, etc.)

License: MIT

Supported DuckDB versions: 1.5.4+

Supported PHP versions: 8.2+

Supported operating systems: Linux, macOS, Windows
(Ubuntu 24+, Debian 12+, Fedora 42+, openSUSE 16+, AmazonLinux 2023+, Wolfi OS, Windows Server 2022+ (x64), macOS 14+ (arm64))

@szarnyasg

Copy link
Copy Markdown
Collaborator

Hi @thomas-0816, thanks for the PR! A few things:

  1. We only include clients in the primary/secondary tier if the core DuckDB team or close long-time contributors are maintaining them. This way, we can guarantee some degree of quality of services. Other clients are under the tertiary category.

  2. In the tertiary category, we already have a PHP client. This is not a problem per se: there are also two Elixir clients. However, please make make a separate page for your clients and explain the differences from the existing PHP client.

Could you please implement these changes?

@thomas-0816

thomas-0816 commented Jul 20, 2026

Copy link
Copy Markdown
Author

Thanks for the feedback, I moved the page to tertiary clients.

The differences between satur.io/duckdb and pdo_duckdb in short:

  • native extension in C/C++, thread-safe, no FFI
  • uses PDO interface (every application using PDO can directly use it next to mysql, postgresql, sqlite, etc.)
  • support for 1.5.4+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants