PHPackages                             kambo/duckdb - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. kambo/duckdb

ActiveLibrary[HTTP &amp; Networking](/categories/http)

kambo/duckdb
============

A PHP library for communication with DuckDB

0.7.0-alpha.2(2y ago)366461[1 issues](https://github.com/kambo-1st/duckdb-php/issues)MITCPHP ^8.1

Since Feb 19Pushed 1y ago2 watchersCompare

[ Source](https://github.com/kambo-1st/duckdb-php)[ Packagist](https://packagist.org/packages/kambo/duckdb)[ Docs](https://github.com/kambo/duckdb)[ GitHub Sponsors](https://github.com/kambo)[ RSS](/packages/kambo-duckdb/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)Dependencies (4)Versions (7)Used By (0)

DuckDB PHP library
==================

[](#duckdb-php-library)

An unofficial [DuckDB](https://duckdb.org/) communication library for PHP.

[![Latest Version on Packagist](https://camo.githubusercontent.com/b98c7c34ba8bddc82e084939fa7d925aae8357059c62b4dd3363a4eb9daf85ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b616d626f2f6475636b64622d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kambo/duckdb-php)[![Tests](https://camo.githubusercontent.com/5a26eba8b262295affbce9cdf1c5fe5013b27826290ed97e85db745211e067ae/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b616d626f2d3173742f6475636b64622d7068702f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/kambo-1st/duckdb-php/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/7c5761c80830c90b9b9d5852dba6f80a8af4fc3557737d91027eb28f43361da3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b616d626f2f6475636b64622d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kambo/duckdb-php)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require kambo/duckdb kambo/duckdb-php-linux-lib
```

Note: the kambo/duckdb-php-linux-lib package contains a binary library for Linux.

Usage
-----

[](#usage)

```
$database = new Kambo\DuckDB\Database();
$connection = new Kambo\DuckDB\Connection($database);

$connection->query('CREATE TABLE integers(i INTEGER, j INTEGER);');
$connection->query('INSERT INTO integers VALUES (3,4), (5,6), (7, NULL) ');

$result = $connection->query('SELECT * FROM integers;');

var_export($result->toArray());
```

Current limitations
-------------------

[](#current-limitations)

- This library is in alpha version.
- It currently only works under Linux (work is ongoing for other platforms).
- It has limited support of DuckDB APIs.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~480 days

Total

2

Last Release

748d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1073586?v=4)[Øystein Kambo Tangerås](/maintainers/kambo)[@kambo](https://github.com/kambo)

---

Top Contributors

[![kambo-1st](https://avatars.githubusercontent.com/u/6493048?v=4)](https://github.com/kambo-1st "kambo-1st (3 commits)")[![dancal](https://avatars.githubusercontent.com/u/2622020?v=4)](https://github.com/dancal "dancal (1 commits)")

---

Tags

duckdbkambo

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/kambo-duckdb/health.svg)

```
[![Health](https://phpackages.com/badges/kambo-duckdb/health.svg)](https://phpackages.com/packages/kambo-duckdb)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M91](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
