chillerlan / php-database
一个可扩展的数据库包装器和查询构建器。
3.1.0
2019-08-01 23:45 UTC
Requires
- php: ^7.2
- chillerlan/php-settings-container: ^1.0
- chillerlan/php-traits: ^3.0
- psr/log: ^1.0
- psr/simple-cache: ^1.0
Requires (Dev)
- chillerlan/php-cache: ^3.0
- chillerlan/php-dotenv: ^1.0
- chillerlan/php-log: ^3.0
- phpunit/phpunit: ^8.2
README
一个针对最常见数据库的PHP SQL客户端和查询构建器,包括:MySQL、PostgreSQL、SQLite3、Microsoft SQL Server(Transact)和Firebird。
文档
需求
- PHP 8.2+
- 支持的数据库之一,配置为与PHP一起使用
- MySQL (5.5+) / MariaDB 通过 ext-mysqli 或 ext-pdo_mysql
- PostgreSQL (9.5+) 通过 ext-pgsql 或 ext-pdo_pgsql
- SQLite3 通过 ext-pdo_sqlite
- Firebird (2.5+) 通过 ext-pdo_firebird
- Microsoft SQL Server (transact-sql) 通过 ext-sqlsrv 或 ext-pdo_sqlsrv
安装
需要 composer
composer.json
(注意:将 dev-main
替换为 版本边界)
{ "require": { "php": "^8.2", "chillerlan/php-database": "dev-main" } }
成功!