forrest79/phpgsql
最新稳定版本:v2.0.1
Composer 安装命令:
composer require forrest79/phpgsql
包简介
PostgreSQL library for PHP with fluent interface for SQL query writing.
README 文档
README
Simple and fast PHP database library for PostgreSQL with auto converting DB types to PHP and a powerful fluent interface that can be used to simply create the most of SQL queries.
- lightweight
- no magic
- no database structure reading
- automatically convert PG data types to PHP data types
- support async connect to DB and async query
- simple creating queries with parameters - char
?for variable is automatically replaced with$1,$2and so...- as a variable you can pass scalar, bool, array, literal or other query
DB and fluent part can be used separately.
Examples of how to use this library in application, how to extend it with some useful methods and a simple repository system can be found here https://github.com/forrest79/phpgsql-extension-repository-example.
Installation
The recommended way to install PhPgSql is through Composer:
composer require forrest79/phpgsql
PhPgSql requires PHP 8.3.0 and pgsql binary extension. It doesn't work with the PDO!
If you're using PHPStan you can install settings for this great tool.
composer require --dev forrest79/phpgsql-phpstan
And if you're using Nette framework, there is existing integration with the Tracy panel.
Documentation
Complete documentation is in the docs directory.
All examples are self-tested - you can be sure, it's working.
统计信息
- 总下载量: 8.76k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-10-21