laranail/db-tools

Independent Laravel database utilities — model traits (UUID/NanoID/ULID, audit log, soft-deletes-with-undo, soft-archive, JSON accessors), casts (money, datetime), schema macros & field groups, backup/restore, a database CLI command, connection & table inspection, a session read-model, and cursor +

Maintainers

Package info

github.com/laranail/db-tools

Homepage

Documentation

pkg:composer/laranail/db-tools

Transparency log

Statistics

Installs: 44

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v2.0.0 2026-07-08 17:22 UTC

This package is auto-updated.

Last update: 2026-07-08 18:13:11 UTC


README

Latest version on Packagist Tests Static analysis License: MIT

Independent, framework-agnostic database utilities for Laravel — model traits (UUID/NanoID/ULID keys, JSON accessors, slugs, soft-archiving), money & datetime casts, schema macros, an audit observer, backup/restore, a database CLI, cursor/offset pagination, and inspection services.

PHP ^8.4 || ^8.5 on Laravel ^13 — depends only on illuminate/* plus a few small libraries, with no dependency on other Laranail packages.

Install

composer require laranail/db-tools

DbToolsServiceProvider is auto-discovered and registers the schema macros at boot.

Documentation

Full documentation is at opensource.simtabi.com/documentation/laranail/db-tools — installation, getting started, the model traits, casts, schema macros, the audit observer, backup/restore, the database CLI, and configuration.

Contributing & security

Issues and PRs are welcome — see CONTRIBUTING.md. Report vulnerabilities per SECURITY.md (opensource@simtabi.com); participation follows the Code of Conduct.

License

MIT © Simtabi LLC. See LICENSE.