Installation#
Requirements#
PHP
^8.4ext-pdoOptional per driver: -
ext-pdo_mysql-ext-pdo_pgsql-ext-pdo_sqlite
Driver Notes#
DBLayer can be installed once and used across multiple engines, but each runtime environment must have the extension for the active driver enabled.
Local/dev usually uses
pdo_sqlitefor fast setup.Production MySQL requires
pdo_mysql.Production PostgreSQL requires
pdo_pgsql.
Install#
composer require infocyph/dblayer
Quick Verification#
After install, verify autoload + extension availability:
composer show infocyph/dblayer
php -m | findstr /I pdo
If you see only PDO but not a driver module, connection creation will fail
for that specific driver.
Development Dependencies#
composer install
Useful local quality checks:
composer test:syntax
composer test:code
composer test:all