PHPackages                             nubitio/sequence-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nubitio/sequence-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

nubitio/sequence-bundle
=======================

Opt-in atomic field numbering for Nubit Symfony apps via the Sequence attribute and a shared counter table.

v0.10.3(today)01↑2900%MITPHPPHP &gt;=8.5

Since Jun 19Pushed todayCompare

[ Source](https://github.com/nubitio/sequence-bundle)[ Packagist](https://packagist.org/packages/nubitio/sequence-bundle)[ Docs](https://github.com/nubitio/nubit-symfony/tree/main/packages/sequence-bundle)[ RSS](/packages/nubitio-sequence-bundle/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (9)Versions (5)Used By (0)

nubitio/sequence-bundle
=======================

[](#nubitiosequence-bundle)

Opt-in atomic numbering for document fields.

Install
-------

[](#install)

```
composer require nubitio/sequence-bundle
```

Create the counter table (once per app):

```
CREATE TABLE nubit_sequence_counter (
    id SERIAL PRIMARY KEY,
    scope_key VARCHAR(190) NOT NULL,
    name VARCHAR(64) NOT NULL,
    next_value INT NOT NULL DEFAULT 1,
    CONSTRAINT UNIQ_SEQUENCE_SCOPE_NAME UNIQUE (scope_key, name)
);
```

Or run a Doctrine migration that maps `Nubit\SequenceBundle\Entity\SequenceCounter`.

Usage
-----

[](#usage)

```
use Nubit\SequenceBundle\Attribute\Sequence;

#[Sequence(field: 'number', name: 'order', prefix: 'ORD-', padding: 4, scope: ['restaurant'])]
class Order
{
    // number is allocated on POST when left empty
}
```

Counters are isolated per scope (`restaurant:1|…`) and sequence name (`order`).

Frontend integration
--------------------

[](#frontend-integration)

The Hydra API doc publishes `x-sequence` on the resource class so `@nubitio/react-admin` hides the allocated field on create/edit forms and marks it read-only in the grid:

```
{
  "@id": "#Order",
  "x-sequence": {
    "field": "number",
    "name": "order",
    "prefix": "ORD-",
    "padding": 4,
    "scope": ["restaurant"]
  }
}
```

No manual `visibleOnForm: false` on the sequence property is required when the bundle is enabled.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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 ~0 days

Total

4

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/990211?v=4)[Johan Guerreros](/maintainers/johangm90)[@johangm90](https://github.com/johangm90)

---

Top Contributors

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

---

Tags

symfonybundlesequencenumberingnubit

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M373](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1715.6k12](/packages/2lenet-crudit-bundle)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

51090.8k2](/packages/web-auth-webauthn-framework)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

66474.5k9](/packages/web-auth-webauthn-symfony-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)

PHPackages © 2026

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