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

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

jhyperf/pgsql
=============

hyperf pgsql database compoent

v1.0.3(5y ago)126MITPHPPHP &gt;=7.2

Since Sep 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/devjunj/hyperf-pgsql)[ Packagist](https://packagist.org/packages/jhyperf/pgsql)[ RSS](/packages/jhyperf-pgsql/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (10)Versions (5)Used By (0)

hyperf-pgsql
============

[](#hyperf-pgsql)

| hyperf 框架pgsql插件

- 1.通过composer安装

```
composer require jhyperf/pgsql

```

- 2.自动配置

```
php bin/hyperf.php vendor:publish jhyperf/pgsql

```

- 3.修改ENV配置

```
PGSQL_USERNAME=
PGSQL_PASSWORD=
PGSQL_HOST=
PGSQL_PORT=
PGSQL_DB=hyperf
PGSQL_MAX_IDLE_TIME=60

```

- 4.使用示例

```
    /**
     * @Inject()
     * @var Pgsql
     */
    protected $pgsql;

    $this-pgsql->fetch("select * from company;",[]);

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Total

4

Last Release

2059d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/142353?v=4)[Dan Hersam](/maintainers/jaden)[@jaden](https://github.com/jaden)

---

Tags

phppgsqlhyperf

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[hyperf/database

A flexible database library.

202.8M257](/packages/hyperf-database)[hyperf/database-pgsql

A pgsql handler for hyperf/database.

12282.0k13](/packages/hyperf-database-pgsql)[jonas-elias/hyperf-oracle

A oracle handler for hyperf/database.

102.0k](/packages/jonas-elias-hyperf-oracle)

PHPackages © 2026

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