Raw SQL first
DB::prepare()->args()->execute() with named placeholders, typed binding, and a rich result set.
v0.1.0 · Released
A minimal PDO database client and query builder for PHP. Raw SQL first, optional SQL builder, records and casts, reusable query classes, and transactions. Works as a standalone package or with Lunaris.
composer require lunaris/runo
Not an ORM — just a thin, predictable layer over PDO.
DB::prepare()->args()->execute() with named placeholders, typed binding, and a rich result set.
Optional Sql for select, insert, update, delete — where, whereIn, joins, order, limit, and offset.
Hydrate rows into Record objects with casting for int, float, bool, JSON, and DateTimeInterface.
Reusable, testable SQL objects: extend Query, implement sql(), run with execute() or run().
Closure-based and manual transactions with commit/rollback and exception safety.
Last insert ID, affected/row counts, and execution time on every Result.
Runo currently targets MySQL/MariaDB via pdo_mysql with DSN
mysql:host=...;port=...;dbname=...;charset=utf8mb4. PHP 8.0+ required.
Install the package, initialize the connection, and run your first prepared query.