Gap-free document numbering for PHP 8.1+: invoice, credit-note and order numbers with year/quarter/month/day reset, atomic counter stores (in-memory, JSON file, PDO with…
Gap-free document numbering for PHP 8.1+: invoice, credit-note and order numbers with year/quarter/month/day reset, atomic counter stores (in-memory, JSON file, PDO with row locking), takeover of an existing number range, and a gap-and-duplicate audit report. No runtime dependencies.
composer require numberkit/document-sequence-pro
src/Clock.phpsrc/SystemClock.phpsrc/FrozenClock.phpsrc/Reset.phpsrc/Pattern.phpsrc/IssuedNumber.phpsrc/ParsedNumber.phpsrc/CounterStore.phpsrc/SequenceGenerator.phpsrc/Store/InMemoryCounterStore.phpsrc/Store/JsonFileCounterStore.phpsrc/Store/PdoCounterStore.phpThis page is the working piece. The full pack has everything below.
Send it to meNeed more than this one? ReadyStack Pass opens all 679 files and 561 full versions — $29/month or $199/year. See the Pass →
Gap-free document numbering for PHP 8.1+: invoice, credit-note and order numbers with year/quarter/month/day reset, atomic counter stores (in-memory, JSON file, PDO with row locking), takeover of an existing number range, and a gap-and-duplicate audit report.
The preview on this page is free.
1. Read below what is included. 2. Open the parts you need directly on this page. 3. A question? Use the question box at the bottom of the page.
One question, answered by the person who built it. Your email only if you want the answer sent.
For a team or company: for an invoice with your company details, a quote or several licences, write to [email protected].
ReadyStack is a small team. We build each tool for one job people keep asking about, from the rules and sources named on the page, and we run it on the worked example you see here before it goes live.
How we check our pages: each rule names its source and the day we read it.
Something looks wrong, or you are stuck? Write to [email protected] or use the contact form. It goes to our own inbox, not to a bot.
ReadyStack
Calculators, templates and deadlines for the rules that change every year — free in your browser.