naf / database
NAF Database Plugin to work with various storage solutions.
v0.2.1
2026-09-13 19:56 UTC
Requires
- php: >=8.3
- ext-pdo: *
- naf/framework: ^0.2
Requires (Dev)
- phpunit/php-code-coverage: ^12.1
- phpunit/phpunit: ^12.1
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-13 20:50:04 UTC
README
naf/database
Simple, native PDO connection for your NAF application.
This plugin provides a shared PDO instance via the service container, supporting both MySQL/MariaDB and SQLite out of the box — with sensible defaults.
🧩 Part of the official NAF plugin collection. Install it when you need a native, PSR-compliant database connection — and nothing more.
Documentation
Everything about this package — what it does, how it is configured and what it needs — lives in the NAF documentation. Not sure which packages you need? Start here.
Install
composer require naf/database
License
MIT. Part of NAF.
