PHPackages                             laranail/database-tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. laranail/database-tools

ActiveLibrary[Database &amp; ORM](/categories/database)

laranail/database-tools
=======================

Independent Laravel database utilities — model traits (UUID/NanoID/ULID, audit log, soft-deletes-with-undo, JSON accessors), casts (money, datetime), schema macros, backup/restore, connection &amp; table inspection, and cursor pagination.

v0.1.0(1mo ago)00[2 PRs](https://github.com/laranail/database-tools/pulls)1MITPHPPHP ^8.3 || ^8.4 || ^8.5CI passing

Since Jun 18Pushed 1w agoCompare

[ Source](https://github.com/laranail/database-tools)[ Packagist](https://packagist.org/packages/laranail/database-tools)[ Docs](https://opensource.simtabi.com/database-tools/)[ RSS](/packages/laranail-database-tools/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (15)Versions (2)Used By (1)

laranail/db-tools
=================

[](#laranaildb-tools)

[![Latest version on Packagist](https://camo.githubusercontent.com/d067569400afdf551dd8613cb1e281ae3fa70d8009704b0dac59fba010ceafca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6172616e61696c2f64622d746f6f6c732e737667)](https://packagist.org/packages/laranail/db-tools)[![Tests](https://github.com/laranail/db-tools/actions/workflows/tests.yml/badge.svg)](https://github.com/laranail/db-tools/actions/workflows/tests.yml)[![Static analysis](https://github.com/laranail/db-tools/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/laranail/db-tools/actions/workflows/static-analysis.yml)[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

> Independent, framework-agnostic database utilities for Laravel — model traits (UUID/NanoID/ULID keys, JSON accessors, slugs, soft-archiving), money &amp; 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
-------

[](#install)

```
composer require laranail/db-tools
```

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

Documentation
-------------

[](#documentation)

Full documentation is at **[opensource.simtabi.com/documentation/laranail/db-tools](https://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 &amp; security
---------------------------

[](#contributing--security)

Issues and PRs are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md). Report vulnerabilities per [SECURITY.md](SECURITY.md) (); participation follows the [Code of Conduct](CODE_OF_CONDUCT.md).

License
-------

[](#license)

MIT © Simtabi LLC. See [LICENSE](LICENSE).

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance95

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

46d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3108393?v=4)[Simtabi](/maintainers/simtabi)[@simtabi](https://github.com/simtabi)

---

Top Contributors

[![imanimanyara](https://avatars.githubusercontent.com/u/19682005?v=4)](https://github.com/imanimanyara "imanimanyara (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")

---

Tags

databaseeloquentlaravellaravel-packageossphplaraveldatabasebackupuuidulidAuditsoft deletesnanoidlaranailschema-macros

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/laranail-database-tools/health.svg)

```
[![Health](https://phpackages.com/badges/laranail-database-tools/health.svg)](https://phpackages.com/packages/laranail-database-tools)
```

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.9M105](/packages/mongodb-laravel-mongodb)[illuminate/queue

The Illuminate Queue package.

20433.0M1.7k](/packages/illuminate-queue)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.4M352](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.3M27](/packages/yajra-laravel-oci8)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1613.3k4](/packages/masterix21-laravel-licensing)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1239.7k25](/packages/fleetbase-core-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
