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(1y ago)366381[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 1mo ago

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

30

—

LowBetter than 64% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

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

702d 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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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