Download the PHP package guava/laravel-sequence without Composer
On this page you can find all versions of the php package guava/laravel-sequence. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-sequence
Laravel Sequence
Generate sequential numbers with pattern (e.g. for invoice numbers)
Features
- Easy integration
- Multiple pattern placeholders
- Support for three most common reset frequencies
- Automatically creating new ordinal number based on reset frequency
Installation
Usage
Reset Frequencies
Sequences supports three most commonly used reset frequencies. \Guava\Sequence\Enums\ResetFrequency
class should be used when creating new sequence rule.
ResetFrequency::YEARLY
- resets ordinal number at the beginning of new yearResetFrequency::MONTHLY
- resets ordinal number at the beginning of new monthResetFrequency::DAILY
- resets ordinal number at the beginning of new day
Pattern Placeholders
Placeholder | Description | Example |
---|---|---|
{number} |
generated, ordinal number | |
{day} |
day of passed date with leading zero | 05 |
{month} |
month of passed date with leading zero | 03 |
{year} |
full year of passed date | 2021 |
{day_short} |
day of passed date without leading zero | 5 |
{month_short} |
month of passed date without leading zero | 3 |
{year_short} |
short year of passed date | 21 |
Credits
This package is a fork of nextgen-tech/laravel-sequence
- Credits to the original author Krzysztof Grabania
All versions of laravel-sequence with dependencies
PHP Build Version
Package Version
The package guava/laravel-sequence contains the following files
Loading the files please wait ....