What you get: This page is the working piece.
What you get: This page is the working piece.
Gap-free, concurrency-safe invoice and document numbering for PHP 8.1+ — 24 profiles, 6 document types, 4 reset regimes, zero dependencies.
composer require docnum/invoice-numbering
src/Format.phpsrc/ResetPolicy.phpsrc/DocumentType.phpsrc/Profile.phpsrc/Profiles.phpsrc/Numbering.phpsrc/GapReport.phpsrc/Store/SequenceStore.phpsrc/Store/InMemoryStore.phpsrc/Store/FileStore.phpsrc/Store/PdoStore.phpsrc/Exception/NumberingException.phpThis page is the working piece. The full pack has everything below.
24 numbering profiles across 6 document types and 4 reset regimes — the number is handed out once, even when two requests land in the same second.
Replacement cost is not the code, it is the concurrency proof: the race between two POST requests, the 1 January rollover, the {SEQ:5} width overflow at 100000, and adopting a legacy series without renumbering it — each one only s
Buy the full version — $6Need more than this one? ReadyStack Pass opens all 679 files and 561 full versions — $29/month or $199/year. See the Pass →
What you get: This page is the working piece.
The preview on this page is free. The full version ($6) adds: This page is the working piece.
1. Read below what the file contains. 2. Pay once and download the file right away. 3. Open it and fill in your own details.
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 support@getreadystack.com.
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 support@getreadystack.com 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.