PHPackages                             programster/pgsql-lib - 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. programster/pgsql-lib

ActiveLibrary[Database &amp; ORM](/categories/database)

programster/pgsql-lib
=====================

A library for interfacing with a PostgreSQL database in PHP.

2.0.0(2y ago)11.5k↓25%2MITPHPPHP &gt;=8.2.0

Since Dec 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/programster/package-pgsql-lib)[ Packagist](https://packagist.org/packages/programster/pgsql-lib)[ Docs](https://github.com/programster/package-pgsql-libs)[ RSS](/packages/programster-pgsql-lib/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (2)

PgSQL Lib
=========

[](#pgsql-lib)

A library for helping interface with PostgreSQL.

Roadmap
-------

[](#roadmap)

Upgrade to requiring PHP 8.1 in order to make the following changes:

- Change the Conjunction class to a simple enum.
- Replace usage of the PgSqlConnection object with the [PgSql\\Connection class](https://www.php.net/manual/en/class.pgsql-connection.php).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~824 days

Total

2

Last Release

790d ago

Major Versions

1.0.0 → 2.0.02024-03-20

PHP version history (2 changes)1.0.0PHP &gt;=7.4.0

2.0.0PHP &gt;=8.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/64a048ca8be761aced9419279975a21ef679b71c70d8263bc2fc413a87ad381c?d=identicon)[programster](/maintainers/programster)

---

Top Contributors

[![programster](https://avatars.githubusercontent.com/u/5709838?v=4)](https://github.com/programster "programster (8 commits)")

---

Tags

postgresqlpgsql

### Embed Badge

![Health badge](/badges/programster-pgsql-lib/health.svg)

```
[![Health](https://phpackages.com/badges/programster-pgsql-lib/health.svg)](https://phpackages.com/packages/programster-pgsql-lib)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4485.3M4](/packages/martin-georgiev-postgresql-for-doctrine)[aura/sql

A PDO extension that provides lazy connections, array quoting, query profiling, value binding, and convenience methods for common fetch styles. Because it extends PDO, existing code that uses PDO can use this without any changes to the existing code.

5632.5M43](/packages/aura-sql)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4572.9M34](/packages/aura-sqlquery)[amphp/postgres

Asynchronous PostgreSQL client for Amp.

110509.8k27](/packages/amphp-postgres)[vcian/laravel-db-auditor

Database DB Auditor provide leverage to audit your MySql,sqlite, PostgreSQL database standards and also provide options to add constraints in table.

28535.1k1](/packages/vcian-laravel-db-auditor)

PHPackages © 2026

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