nicolask / numerator
A simple sqlite based tool to create consecutive numbers.
dev-master
2019-12-29 19:46 UTC
Requires
- ext-pdo: *
Requires (Dev)
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2025-05-29 01:46:04 UTC
README
This package provides a very simple number generator that relies on a local Sqlite database. This tool simplifies the tasks of creating consecutive numbers and saving the time when they got created.
It might be helpful when implementing a very simple order system with the need to create unique and traceable numbers to identify invoices or other order documents for later processing.
Installation
composer require nicolask/numerator
Usage
$factory = new NumberFactory($pathToDb); $nextNumber = $factory->getNextNumber();