ybr-nx/laravel-mariadb
ybr-nx/laravel-mariadb adds first-class MariaDB support to Laravel, providing a dedicated database driver and schema grammar so MariaDB-specific features work smoothly with Eloquent, migrations, and the query builder. A practical drop-in for apps built on MariaDB.
whereJsonContains, JSON path selects, or JSON length queries can be kept at parity across MySQL and MariaDB instead of being silently marked "MySQL 8+ only."Adopt when:
Look elsewhere / skip when:
Mitigations regardless: pin the version, add a real MariaDB service to CI (not SQLite), smoke-test each JSON operator we rely on, and keep the patch small enough to vendor if it's abandoned.
Executives: A small, targeted dependency that lets us support MariaDB — a large share of self-hosted and budget-hosting environments — without maintaining a fork of our app or forcing customers onto MySQL 8. Cost is one Composer package; the risk is single-maintainer open source, which we contain by pinning versions and keeping the patch vendor-able if needed.
Engineering: Laravel's MySQL grammar emits JSON SQL that doesn't behave correctly against MariaDB. This package supplies the MariaDB-specific grammar so whereJsonContains and JSON path selects work unchanged. It's a grammar patch, not a driver change — review surface is SQL generation only. Actions: pin the version, add a MariaDB container to the CI matrix, add one smoke test per JSON operator in use, and confirm supported Laravel/MariaDB version pairs before committing.
How can I help you explore Laravel packages today?