定制 forrest79/phpgsql 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

forrest79/phpgsql

最新稳定版本:v2.0.1

Composer 安装命令:

composer require forrest79/phpgsql

包简介

PostgreSQL library for PHP with fluent interface for SQL query writing.

README 文档

README

Latest Stable Version Monthly Downloads License Build codecov

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, $2 and 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

GitHub 信息

  • Stars: 14
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2018-10-21