chillerlan / php-database
An extensible database wrapper and query builder.
Fund package maintenance!
Ko Fi
www.paypal.com/donate?hosted_button_id=WLYUNAT9ZTJZ4
Installs: 1 139
Dependents: 6
Suggesters: 0
Security: 0
Stars: 38
Watchers: 3
Forks: 8
Open Issues: 0
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
A PHP SQL client and querybuilder for the most common databases, namely: MySQL, PostgreSQL, SQLite3, Microsoft SQL Server (Transact) and Firebird.
Documentation
Requirements
- PHP 8.2+
- one of the supported databases, set up to work with PHP:
- MySQL (5.5+) / MariaDB via ext-mysqli or ext-pdo_mysql
- PostgreSQL (9.5+) via ext-pgsql or ext-pdo_pgsql
- SQLite3 via ext-pdo_sqlite
- Firebird (2.5+) via ext-pdo_firebird
- Microsoft SQL Server (transact-sql) via ext-sqlsrv or ext-pdo_sqlsrv
Installation
requires composer
composer.json
(note: replace dev-main
with a version boundary)
{ "require": { "php": "^8.2", "chillerlan/php-database": "dev-main" } }
Profit!