PHPackages                             digicomp/sequence - 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. digicomp/sequence

ActiveNeos-package[Database &amp; ORM](/categories/database)

digicomp/sequence
=================

Sequence is a very simple database agnostic but database based sequence generator

4.0.1(3y ago)22.4kMITPHP &gt;=7.4

Since Apr 16Compare

[ Source](https://github.com/digital-competence/DigiComp.Sequence)[ Packagist](https://packagist.org/packages/digicomp/sequence)[ Docs](https://github.com/digital-competence/DigiComp.Sequence)[ RSS](/packages/digicomp-sequence/feed)WikiDiscussions Synced yesterday

READMEChangelogDependencies (2)Versions (17)Used By (0)

DigiComp.Sequence
=================

[](#digicompsequence)

[![Build status](https://camo.githubusercontent.com/2c1dcad71d5802cd6c82892555fe7e55c2193a94c9533bce6fe24bcf9d75bbf3/68747470733a2f2f63692e6469676974616c2d636f6d706574656e63652e64652f6170692f6261646765732f5061636b616765732f44696769436f6d702e466c6f774f626a6563745265736f6c76696e672f7374617475732e737667)](https://camo.githubusercontent.com/2c1dcad71d5802cd6c82892555fe7e55c2193a94c9533bce6fe24bcf9d75bbf3/68747470733a2f2f63692e6469676974616c2d636f6d706574656e63652e64652f6170692f6261646765732f5061636b616765732f44696769436f6d702e466c6f774f626a6563745265736f6c76696e672f7374617475732e737667)

This is a very simple tool, helping in generation of gapless sequences. For this task it relies on key integrity of the database of your choice.

Usage is quite simple also:

```
    /**
     * @param SequenceGenerator $sequenceGenerator
     */
    public function __construct(SequenceGenerator $sequenceNumberGenerator)
    {
        $this->orderId = $sequenceGenerator->getNextNumberFor($this);
    }
```

`getNextNumberFor` allows you to give an object (which will be resolved to its FQCN) or a custom sequence name.

The `SequenceCommandController` helps you to set the last sequence number, in case of migrations or similar. See `./flow help sequence:setlastnumberfor` if interested.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 74.2% 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 ~230 days

Recently: every ~293 days

Total

15

Last Release

1228d ago

Major Versions

1.1.1 → 2.0.02017-09-04

2.1.2 → 3.0.02021-08-26

3.0.0 → 4.0.02022-05-04

PHP version history (2 changes)3.0.0PHP ^7.4

4.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/f2611409165e69b6d904337ee2394eab03510aacf592bd85ae35afc7a0d7c460?d=identicon)[fcool](/maintainers/fcool)

---

Top Contributors

[![fcool](https://avatars.githubusercontent.com/u/304736?v=4)](https://github.com/fcool "fcool (46 commits)")[![DanielSiepmann](https://avatars.githubusercontent.com/u/354250?v=4)](https://github.com/DanielSiepmann "DanielSiepmann (16 commits)")

---

Tags

doctrineflowNeossequence

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/digicomp-sequence/health.svg)

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

###  Alternatives

[doctrine/common

PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflection support, proxies and much more.

5.8k371.8M1.3k](/packages/doctrine-common)[gedmo/doctrine-extensions

Doctrine behavioral extensions

4.1k124.6M416](/packages/gedmo-doctrine-extensions)[symfony/property-info

Extracts information about PHP class' properties using metadata of popular sources

2.2k270.7M1.1k](/packages/symfony-property-info)[beberlei/doctrineextensions

A set of extensions to Doctrine 2 that add support for additional query functions available in MySQL, Oracle, PostgreSQL and SQLite.

2.1k78.1M170](/packages/beberlei-doctrineextensions)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90441.8M248](/packages/ramsey-uuid-doctrine)[carbonphp/carbon-doctrine-types

Types to use Carbon in Doctrine

220244.9M9](/packages/carbonphp-carbon-doctrine-types)

PHPackages © 2026

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