PHPackages                             m6w6/ext-pq - 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. [Database &amp; ORM](/categories/database)
4. /
5. m6w6/ext-pq

ActivePhp-ext[Database &amp; ORM](/categories/database)

m6w6/ext-pq
===========

PostgreSQL client library (libpq) binding

41449[1 issues](https://github.com/m6w6/ext-pq/issues)[2 PRs](https://github.com/m6w6/ext-pq/pulls)CCI passing

Since Sep 4Pushed 10mo ago7 watchersCompare

[ Source](https://github.com/m6w6/ext-pq)[ Packagist](https://packagist.org/packages/m6w6/ext-pq)[ RSS](/packages/m6w6-ext-pq/feed)WikiDiscussions master Synced today

READMEChangelog (10)DependenciesVersions (1)Used By (0)

pecl/pq
=======

[](#peclpq)

[![Build Status](https://github.com/m6w6/ext-pq/workflows/ci/badge.svg?branch=master)](https://github.com/m6w6/ext-pq/actions?query=branch%3Amaster+workflow%3Aci)[![codecov](https://camo.githubusercontent.com/cb9a6cc5167762489ea2a15560c6b3df8f2af2057adf68fce47d719021c86055/68747470733a2f2f636f6465636f762e696f2f67682f6d3677362f6578742d70712f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d4e6b7539747a38454d6a)](https://codecov.io/gh/m6w6/ext-pq)

About:
------

[](#about)

This is a modern binding to the mature [libpq](http://www.postgresql.org/docs/current/static/libpq.html), the official PostgreSQL C-client library.

### Highlights:

[](#highlights)

- Nearly 100% support for [asynchronous usage](https://mdref.m6w6.name/pq/Connection/:%20Asynchronous%20Usage).
- Extended [type support by pg\_type](https://mdref.m6w6.name/pq/Types/:%20Overview).
- Fetching simple [multi-dimensional array maps](https://mdref.m6w6.name/pq/Result/map).
- Working [Gateway implementation](https://github.com/m6w6/pq-gateway).

Documentation
-------------

[](#documentation)

See the [online markdown reference](https://mdref.m6w6.name/pq).

Known issues are listed in [BUGS](./BUGS) and future ideas can be found in [TODO](./TODO).

Install
-------

[](#install)

### PECL

[](#pecl)

```
pecl install pq

```

### PIE

[](#pie)

```
pie install m6w6/ext-pq

```

### Checkout

[](#checkout)

```
git clone github.com:m6w6/ext-pq
cd ext-pq
/path/to/phpize
./configure --with-php-config=/path/to/php-config
make
sudo make install

```

Dependencies:
-------------

[](#dependencies)

This extension unconditionally depends on the pre-loaded presence of the following PHP extensions:

- [raphf](http://pecl.php.net/package/raphf)
- [spl](http://php.net/spl)

It optionally depends on the following extensions:

- [json](http://php.net/json)

ChangeLog
---------

[](#changelog)

A comprehensive list of changes can be obtained from the [PECL website](https://pecl.php.net/package-changelog.php?package=pq).

License
-------

[](#license)

ext-pq is licensed under the 2-Clause-BSD license, which can be found in the accompanying [LICENSE](./LICENSE) file.

Contributing
------------

[](#contributing)

All forms of contribution are welcome! Please see the bundled [CONTRIBUTING](./CONTRIBUTING.md) note for the general principles followed.

The list of past and current contributors is maintained in [THANKS](./THANKS).

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 Bus Factor1

Top contributor holds 88.4% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1265282?v=4)[Michael Wallner](/maintainers/m6w6)[@m6w6](https://github.com/m6w6)

---

Top Contributors

[![m6w6](https://avatars.githubusercontent.com/u/1265282?v=4)](https://github.com/m6w6 "m6w6 (382 commits)")[![remicollet](https://avatars.githubusercontent.com/u/270445?v=4)](https://github.com/remicollet "remicollet (29 commits)")[![DaveRandom](https://avatars.githubusercontent.com/u/2396425?v=4)](https://github.com/DaveRandom "DaveRandom (17 commits)")[![JustBlackBird](https://avatars.githubusercontent.com/u/1167086?v=4)](https://github.com/JustBlackBird "JustBlackBird (1 commits)")[![danog](https://avatars.githubusercontent.com/u/7339644?v=4)](https://github.com/danog "danog (1 commits)")[![trowski](https://avatars.githubusercontent.com/u/1628287?v=4)](https://github.com/trowski "trowski (1 commits)")[![weltling](https://avatars.githubusercontent.com/u/22016?v=4)](https://github.com/weltling "weltling (1 commits)")

---

Tags

asynchronouslibpqpeclphppostgresql

### Embed Badge

![Health badge](/badges/m6w6-ext-pq/health.svg)

```
[![Health](https://phpackages.com/badges/m6w6-ext-pq/health.svg)](https://phpackages.com/packages/m6w6-ext-pq)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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