PHPackages                             flow-php/pg-query-ext - 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. flow-php/pg-query-ext

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

flow-php/pg-query-ext
=====================

PostgreSQL query parser PHP extension using libpg\_query

0.34.3(1mo ago)03.3k—3.1%1MITCPHP ~8.3.0 || ~8.4.0 || ~8.5.0

Since Dec 12Pushed 1mo agoCompare

[ Source](https://github.com/flow-php/pg-query-ext)[ Packagist](https://packagist.org/packages/flow-php/pg-query-ext)[ Fund](https://flow-php.com/sponsor)[ GitHub Sponsors](https://github.com/norberttech)[ RSS](/packages/flow-php-pg-query-ext/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelogDependenciesVersions (10)Used By (0)

Extension: pg\_query
====================

[](#extension-pg_query)

A compiled PHP extension for PostgreSQL query parsing using [libpg\_query](https://github.com/pganalyze/libpg_query), providing SQL parsing into JSON AST, query fingerprinting, normalization, PL/pgSQL parsing, statement splitting, and tokenization.

Important

This repository is a subtree split from our monorepo. If you'd like to contribute, please visit our main monorepo [flow-php/flow](https://github.com/flow-php/flow).

- 📜 [Documentation](https://flow-php.com/documentation/components/extensions/pg-query-ext/)
- ➡️ [Installation](https://flow-php.com/documentation/installation/packages/pg-query-ext/)
- 🛠️ [Contributing](https://flow-php.com/documentation/contributing/)
- 🚧 [Upgrading](https://flow-php.com/documentation/upgrading/)

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance90

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~12 days

Total

10

Last Release

52d ago

Major Versions

0.34.3 → 1.x-dev2026-03-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/52325810?v=4)[norbert-tech](/maintainers/norbert-tech)[@norbert-tech](https://github.com/norbert-tech)

---

Top Contributors

[![norberttech](https://avatars.githubusercontent.com/u/1921950?v=4)](https://github.com/norberttech "norberttech (9 commits)")

---

Tags

parserpostgresqlsqlextensionastlibpg\_query

### Embed Badge

![Health badge](/badges/flow-php-pg-query-ext/health.svg)

```
[![Health](https://phpackages.com/badges/flow-php-pg-query-ext/health.svg)](https://phpackages.com/packages/flow-php-pg-query-ext)
```

###  Alternatives

[greenlion/php-sql-parser

A pure PHP SQL (non validating) parser w/ focus on MySQL dialect of SQL

63911.6M82](/packages/greenlion-php-sql-parser)[cycle/orm

PHP DataMapper ORM and Data Modelling Engine

1.3k835.4k65](/packages/cycle-orm)[sad_spirit/pg_builder

Query builder for Postgres backed by SQL parser

5933.6k1](/packages/sad-spirit-pg-builder)[delight-im/db

Safe and convenient SQL database access in a driver-agnostic way

49156.8k7](/packages/delight-im-db)[falseclock/dbd-php

Database driver for PHP (PostgreSQL, MySQL, MSSQL, OData, YellowERP, 1С)

116.8k](/packages/falseclock-dbd-php)

PHPackages © 2026

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