nicolask/numerator

A simple sqlite based tool to create consecutive numbers.

Installs: 96

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/nicolask/numerator

dev-master 2019-12-29 19:46 UTC

This package is auto-updated.

Last update: 2025-12-29 03:33:09 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();