PHPackages                             girover/sequent-numbers - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. girover/sequent-numbers

ActiveLibrary[Database &amp; ORM](/categories/database)

girover/sequent-numbers
=======================

Generating database table for Sequent Numbers as strings

v0.1.0-alpha(3y ago)03MITPHPPHP ^8.0

Since Jul 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/girover/sequent-numbers)[ Packagist](https://packagist.org/packages/girover/sequent-numbers)[ Docs](https://github.com/girover/sequent-numbers-table)[ RSS](/packages/girover-sequent-numbers/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

Sequent Numbers Package
=======================

[](#sequent-numbers-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3d310ec7dca36c78c69d6d57b976ff19eec0be551100054359469a60d3651c69/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6769726f7665722f73657175656e742d6e756d626572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/girover/sequent-numbers)[![GitHub Tests Action Status](https://camo.githubusercontent.com/8960daf57bc2bee6516a39558894a0d592960216f76b65b3700c6bc0a05cc266/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6769726f7665722f73657175656e742d6e756d626572732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/girover/sequent-numbers/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/0262768d25d22fa2b3c99d9afe3ffa285f383ba165a87293c87af1459bf76458/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6769726f7665722f73657175656e742d6e756d626572732f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/girover/sequent-numbers/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/4344295daa3dae2c6983ea93d8a0dc0bdc04ce426dadb9ef7d0ff1556bad2fce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6769726f7665722f73657175656e742d6e756d626572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/girover/sequent-numbers)

---

Content
-------

[](#content)

- [Introduction](#introduction)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
    - [Making Numbers](#making-numbers)
    - [Storing Numbers In Database](#storing-numbers-in-database)
- [Testing](#testing)
- [Changelog](#changelog)
- [Contributing](#contributing)
- [Security Vulnerabilities](#security-vulnerabilities)
- [Credits](#credits)
- [License](#license)

Introduction
------------

[](#introduction)

**girover/sequent-numbers** is a package for generating sequence of numbers.
And possibility of storing them in database.

Prerequisites
-------------

[](#prerequisites)

- Laravel 8+
- PHP 8+
- Mysql 5.7+

Installation
------------

[](#installation)

You can add the package via **composer**:

```
composer require girover/sequent-numbers
```

Before installing the package you should configure your database.

Usage
-----

[](#usage)

### getting set of numbers

[](#getting-set-of-numbers)

To make a set of numbers in memory, you can do this.

```
   // InAController
   use \Girover\SequentNumbers\Numbers;

   $numbers = new Numbers;

   $numbers->from('00000')->to('99999')->get()
   // This will return Illuminate\Database\Eloquent\Collection
```

To add some constraints on your numbers:

```
   // InAController
   use \Girover\SequentNumbers\Numbers;

   $numbers = new Numbers;
   $numbers->from("0000")->to("9999");
   $numbers->query()->where('number', '>', '1000')->get();
   // This will return Illuminate\Database\Eloquent\Collection

   $numbers->query()->whereBetween('number', ["5555","7777"])->get();
   // This will return Illuminate\Database\Eloquent\Collection
```

### Storing Numbers in Database

[](#storing-numbers-in-database)

To store your created numbers in the database, you can do this:

```
   // InAController
   use \Girover\SequentNumbers\Numbers;

   $numbers = new Numbers;
   $numbers->from("0000")->to("9999");

   $numbers->storeInTable('my_numbers_table');
```

**Note**: If the name of table already exists in database, the table should has a column called 'number' with varchar(255) type.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1401d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/965c06cf8c6495d548d76f9925467bdb75396d31e17a03fba90693bf65d22438?d=identicon)[girover](/maintainers/girover)

---

Top Contributors

[![girover](https://avatars.githubusercontent.com/u/53403538?v=4)](https://github.com/girover "girover (1 commits)")

---

Tags

laravelnumberssequentgirover

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/girover-sequent-numbers/health.svg)

```
[![Health](https://phpackages.com/badges/girover-sequent-numbers/health.svg)](https://phpackages.com/packages/girover-sequent-numbers)
```

###  Alternatives

[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[spatie/laravel-model-flags

Add flags to Eloquent models

4301.1M1](/packages/spatie-laravel-model-flags)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[spatie/laravel-sql-commenter

Add comments to SQL queries made by Laravel

1931.4M1](/packages/spatie-laravel-sql-commenter)[spatie/laravel-deleted-models

Automatically copy deleted records to a separate table

409109.8k4](/packages/spatie-laravel-deleted-models)[wnx/laravel-backup-restore

A package to restore database backups made with spatie/laravel-backup.

203330.1k2](/packages/wnx-laravel-backup-restore)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
