ceus-media / database
PHP database access
0.7.1
2026-08-28 23:59 UTC
Requires
- php: ^8.3
- ext-pdo: *
- ceus-media/cache: ~0.7 | 0.7.x-dev
- ceus-media/common: ^1.1 | 1.1.x-dev
Requires (Dev)
- ext-mysqli: *
- ceus-media/doc-creator: ~1.1 | 1.1.x-dev
- php-parallel-lint/php-parallel-lint: ~1
- phpstan/phpstan: ~2
- phpstan/phpstan-strict-rules: ~2
- phpunit/phpunit: ~12
- rector/rector: *
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-08-30 01:32:49 UTC
README
PHP database access
Installation
Composer
Install this library using composer:
composer require ceus-media/Database
Within your code, load library:
require_once 'vendor/autoload.php';
Modules
This library offers two independent ways to work with a database:
- PDO - an enhanced PDO wrapper: connections with transactions, logging and pooling, plus a table abstraction (CRUD, entities, caching, a small condition-value query language).
- OSQL - an object-oriented SQL query builder (
Select,Condition,Table,Client) for building and executing queries as objects.
See each module's own README for code examples.