yiisoft/db-pgsql

PostgreSQL driver for Yii Database

Package info

github.com/yiisoft/db-pgsql

Homepage

Chat

Forum

Wiki

pkg:composer/yiisoft/db-pgsql

Fund package maintenance!

Opencollective

yiisoft

Statistics

Installs: 173 206

Dependents: 11

Suggesters: 6

Stars: 41

Open Issues: 5

2.0.1 2026-02-07 06:51 UTC

Requires

Suggests

None

Provides

Conflicts

None

Replaces

None

BSD-3-Clause 4dae087d210f2833085c49e9bc7d8a2ef6e7dc60

databasedbalsqlpgsqlyiiquery-builder


README

👁 Yii
👁 PostgreSQL

Yii Database PostgreSQL Driver


👁 Latest Stable Version
👁 Total Downloads
👁 Build status
👁 Code Coverage
👁 Mutation testing badge
👁 static analysis
👁 type-coverage
👁 psalm-level

PostgreSQL driver for Yii Database is a package for working with PostgreSQL databases in PHP. It includes a database connection class, a command builder class, and a set of classes for representing database tables and rows as PHP objects.

Driver supports PostgreSQL 9 or higher.

Requirements

  • PHP 8.1 - 8.5.
  • pdo_pgsql PHP extension.

Installation

The package could be installed with Composer:

composer require yiisoft/db-pgsql:2.*

Important

See also installation notes for yiisoft/db package.

Documentation

For config connection to PostgreSQL database check Connecting PostgreSQL.

Check the yiisoft/db docs to learn about usage.

If you need help or have a question, the Yii Forum is a good place for that. You may also check out other Yii Community Resources.

License

The Yii Database PostgreSQL Driver is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.

Support the project

👁 Open Collective

Follow updates

👁 Official website
👁 Twitter
👁 Telegram
👁 Facebook
👁 Slack