PHPackages                             vaened/php-sequence-generator - 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. vaened/php-sequence-generator

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

vaened/php-sequence-generator
=============================

Facilitates the generation and autocompletion of a sequential value in the database

v2.0(1y ago)3133.2k↓44.8%2MITPHPPHP ^8.1

Since Sep 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/vaened/php-sequence-generator)[ Packagist](https://packagist.org/packages/vaened/php-sequence-generator)[ RSS](/packages/vaened-php-sequence-generator/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (7)Used By (2)

PHP Sequence Generator Package
==============================

[](#php-sequence-generator-package)

Facilitates the generation and autocompletion of a sequential value in the database

```
// Initialize Repository
$defaultRepository = new MysqlRepository(table: 'sequences');
$anotherRepository = new MysqlRepository(table: 'secuencias');

$normalizer = new Normalizer($defaultRepository);
$generator  = new Generator();
$resolver   = new SequentialIncrementer($normalizer, $generator);

// Define Series
$series = [
    Serie::for('number')->alias('invoice'),

    new Collection($anotherRepository, [
        Serie::for('serie_number')->styles([
            new FixedLength(8),
            new Prefixed('B')
        ]),
    ]),
];

// Make increments
$resolver->resolve('payments', $series);
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~149 days

Recently: every ~186 days

Total

6

Last Release

657d ago

Major Versions

v0.2.2 → v1.0.02022-12-19

v1.0.0 → v2.02024-09-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15077850?v=4)[Enea Dhack](/maintainers/vaened)[@vaened](https://github.com/vaened)

---

Top Contributors

[![vaened](https://avatars.githubusercontent.com/u/15077850?v=4)](https://github.com/vaened "vaened (19 commits)")

---

Tags

sequenceeneavaenedautoincrementincrementsequenceablesuccession

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vaened-php-sequence-generator/health.svg)

```
[![Health](https://phpackages.com/badges/vaened-php-sequence-generator/health.svg)](https://phpackages.com/packages/vaened-php-sequence-generator)
```

###  Alternatives

[gurgentil/laravel-eloquent-sequencer

A package that allows you to create and manage sequences on Eloquent models

15248.1k](/packages/gurgentil-laravel-eloquent-sequencer)[poing/earmark

Laravel package to generate values in a unique and customizable series.

10713.1k](/packages/poing-earmark)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121137.5k](/packages/highsolutions-eloquent-sequence)[admad/cakephp-sequence

Sequence plugin for CakePHP to maintain ordered list of records

45518.5k7](/packages/admad-cakephp-sequence)

PHPackages © 2026

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