Registry / database / horde-db

horde-db

JSON →
library2.4.1phppackagistunverified

Database abstraction library providing a unified API for multiple database backends.

composer require horde/db
INSTALL
IMPORT
SIG · HORDE-DB
H
horde-db
databasephpv2.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mysqli
use Horde\Db\Adapter\Mysqli;

Connect to MySQL and fetch all rows from a table.

<?php use Horde\Db\Adapter\Mysqli; $config = ['host' => 'localhost', 'username' => 'user', 'password' => 'pass', 'database' => 'test']; $db = new Mysqli($config); $rows = $db->selectAll('SELECT * FROM users');
Debug
Known issues
breakingRequires PHP 7.4+ and the mysqli extension.
fix
Ensure PHP version >= 7.4 and mysqli extension is installed.
affects: >=2.0.0
Upgrade
Version history
2.4.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
horde-db — pip install horde-db · libregistry