Gapless invoice numbering for PHP: 26 presets, 11 pattern tokens, 6 reset policies, and an auditor that finds gaps and duplicates in the numbers you already issued.
composer require ledgerkit/invoice-sequence
src/Exception/InvoiceSequenceException.phpsrc/Exception/InvalidPatternException.phpsrc/Exception/UnknownTokenException.phpsrc/Exception/UnknownPresetException.phpsrc/Exception/MissingVariableException.phpsrc/Exception/PatternMismatchException.phpsrc/Exception/SequenceOverflowException.phpsrc/Exception/SequenceGapException.phpsrc/FiscalYear.phpsrc/ResetPolicy.phpsrc/SequenceState.phpsrc/NextNumber.phpThis page is the working piece. The full pack has everything below.
26 numbering presets, one composer require, and an auditor that reads the numbers you have already issued and names every gap and duplicate — while they are still fixable.
Measured on this shelf in 2026-08: a competing paid PHP package on the same shelf lists at USD 60 right now. The yardstick you can check without trusting us is inside the file: open src/ and count — 26 presets, 11 tokens, 6 reset
Send it to me