jhyperf / pgsql
hyperf pgsql database compoent
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jhyperf/pgsql
Requires
- php: >=7.2
- hyperf/pool: ^2.0
- hyperf/utils: ~2.0.0
- psr/container: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14
- hyperf/config: 2.0.*
- hyperf/di: 2.0.*
- hyperf/testing: 2.0.*
- mockery/mockery: ^1.0
- phpstan/phpstan: ^0.12
- swoole/ide-helper: @dev
This package is not auto-updated.
Last update: 2025-10-02 02:34:11 UTC
README
| 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;",[]);