Registry / database / doctrine-dbal

doctrine-dbal

JSON →
library4.4.1phppackagistunverified

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

composer require doctrine/dbal
INSTALL
IMPORT
SIG · DOCTRINE-DBAL
D
doctrine-dbal
databasephpv4.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.

DriverManager
use Doctrine\DBAL\DriverManager;

Create a database connection and execute a simple query.

use Doctrine\DBAL\DriverManager; $connection = DriverManager::getConnection([ 'dbname' => 'mydb', 'user' => 'user', 'password' => 'secret', 'host' => 'localhost', 'driver' => 'pdo_mysql', ]); $result = $connection->executeQuery('SELECT 1');
Debug
Known issues
breakingDoctrine DBAL 4.x requires PHP 8.1+ and drops support for older drivers like pdo_oci.
fix
Upgrade PHP to 8.1+ and check driver compatibility.
affects: >=4.0.0
Upgrade
Version history
4.4.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
34
Resources
doctrine-dbal — pip install doctrine-dbal · libregistry