https://github.com/yiisoft/db-pgsql
PostgreSQL driver for Yii Database
https://github.com/yiisoft/db-pgsql
database db dbal postgresql query-builder sql yii3
Last synced: about 2 months ago
JSON representation
PostgreSQL driver for Yii Database
- Host: GitHub
- URL: https://github.com/yiisoft/db-pgsql
- Owner: yiisoft
- License: bsd-3-clause
- Created: 2018-08-18T12:57:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-10-01T01:24:06.000Z (6 months ago)
- Last Synced: 2025-10-01T03:28:55.688Z (6 months ago)
- Topics: database, db, dbal, postgresql, query-builder, sql, yii3
- Language: PHP
- Homepage: http://www.yiiframework.com
- Size: 865 KB
- Stars: 35
- Watchers: 15
- Forks: 15
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
Yii Database PostgreSQL Driver
[](https://packagist.org/packages/yiisoft/db-pgsql)
[](https://packagist.org/packages/yiisoft/db-pgsql)
[](https://github.com/yiisoft/db-pgsql/actions/workflows/build.yml)
[](https://codecov.io/gh/yiisoft/db-pgsql)
[](https://dashboard.stryker-mutator.io/reports/github.com/yiisoft/db-pgsql/master)
[](https://github.com/yiisoft/db-pgsql/actions?query=workflow%3A%22static+analysis%22)
[](https://shepherd.dev/github/yiisoft/db-pgsql)
[](https://shepherd.dev/github/yiisoft/db-pgsql)
PostgreSQL driver for [Yii Database](https://github.com/yiisoft/db) is a package for working with
[PostgreSQL](https://www.postgresql.org/) 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](https://getcomposer.org):
```shell
composer require yiisoft/db-pgsql
```
> [!IMPORTANT]
> See also [installation notes](https://github.com/yiisoft/db/?tab=readme-ov-file#installation) for `yiisoft/db`
> package.
## Documentation
For config connection to PostgreSQL database check
[Connecting PostgreSQL](https://github.com/yiisoft/db/blob/master/docs/guide/en/connection/pgsql.md).
Check the `yiisoft/db` [docs](https://github.com/yiisoft/db/blob/master/docs/guide/en/README.md) to learn about usage.
- [Internals](docs/internals.md)
If you need help or have a question, the [Yii Forum](https://forum.yiiframework.com/c/yii-3-0/63) is a good place for that.
You may also check out other [Yii Community Resources](https://www.yiiframework.com/community).
## License
The Yii Database PostgreSQL Driver is free software. It is released under the terms of the BSD License.
Please see [`LICENSE`](./LICENSE.md) for more information.
Maintained by [Yii Software](https://www.yiiframework.com/).
## Support the project
[](https://opencollective.com/yiisoft)
## Follow updates
[](https://www.yiiframework.com/)
[](https://twitter.com/yiiframework)
[](https://t.me/yii3en)
[](https://www.facebook.com/groups/yiitalk)
[](https://yiiframework.com/go/slack)