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 me