marjose123/laravel-autonumber
A Laravel package for generating automatic sequential numbers, such as invoice or document codes, for your Eloquent models. Simple to configure and use, it helps keep numbering consistent without manual tracking.
Consider it when:
DB::transaction + lockForUpdate code.Look elsewhere when:
composer.json constraints before committing, since the release note only names Laravel 10.For executives: A small open-source Laravel package that generates sequential business numbers (invoices, orders, tickets) so we don't spend engineering days reinventing it. The new v1.0.1 release adds Laravel 10 support — keeping it viable on our current framework — and a configurable starting value, which covers our legacy-migration numbering needs. Cost is effectively zero; the trade-off is that it's an early-stage, single-maintainer project, so we'd limit it to non-critical numbering and keep the integration behind a thin interface so it can be replaced.
For engineering: v1.0.1 brings Laravel 10 compatibility and a starting value option. Adoption is a composer require plus a trait/config wiring — no schema changes beyond the counter storage. Before rollout: confirm the declared version constraints, review the locking/concurrency behaviour for our write volume, and wrap the generator behind an internal interface so a future swap (or a move to DB-native sequences for financial documents) is a one-class change. Recommend a spike on a non-critical entity first.
How can I help you explore Laravel packages today?