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

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

pimcore/number-sequence-generator
=================================

Pimcore Number Sequence Generator

v2026.1.0(1mo ago)11614.7k↓48.9%6[1 PRs](https://github.com/pimcore/number-sequence-generator/pulls)1proprietaryPHPPHP ~8.4.0 || ~8.5.0CI passing

Since Nov 2Pushed 2w ago7 watchersCompare

[ Source](https://github.com/pimcore/number-sequence-generator)[ Packagist](https://packagist.org/packages/pimcore/number-sequence-generator)[ RSS](/packages/pimcore-number-sequence-generator/feed)WikiDiscussions 2026.x Synced 2d ago

READMEChangelog (10)Dependencies (4)Versions (28)Used By (1)

Number Sequence Generator Bundle
================================

[](#number-sequence-generator-bundle)

Continues numbers
-----------------

[](#continues-numbers)

Generates continous numbers for example for order numbers or customer numbers.

```
public function exampleAction(Pimcore\Bundle\NumberSequenceGeneratorBundle\Generator $generator) {
    /*
    * Generates the next order number (increments current order number by 1)
    * If no order number was generated before it will start with 10000
    */
    $next = $generator->getNext('ordernumber', 10000);

    /*
    * Receive the current order number without incrementing the counter.
    */
    $current = $generator->getCurrent('ordernumber');

    /*
    * Sets the order number to 35017 in the database.
    */
    $generator->setCurrent('ordernumber', 35017);
}
```

Random numbers (either numeric or alphanumeric)
-----------------------------------------------

[](#random-numbers-either-numeric-or-alphanumeric)

Generates unique random numbers.

```
public function __construct(Generator $generator)
{
    $this->generator = $generator;
}

public function generateCode()
{
    $code = $this->generator->generateCode("vouchercode", \Pimcore\Bundle\NumberSequenceGeneratorBundle\RandomGenerator::ALPHANUMERIC, 32);
}
```

Upgrade to Pimcore XI
---------------------

[](#upgrade-to-pimcore-xi)

- Update to latest (allowed) bundle version in Pimcore X and execute all migrations.
- Then update to Pimcore XI.

Documentation Overview
----------------------

[](#documentation-overview)

- [Installation](./doc/01_Installation.md)

###  Health Score

69

—

FairBetter than 100% of packages

Maintenance94

Actively maintained with recent releases

Popularity45

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity91

Battle-tested with a long release history

 Bus Factor4

4 contributors hold 50%+ of commits

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

Recently: every ~47 days

Total

22

Last Release

17d ago

Major Versions

v1.0.7 → v2.0.0-RC12023-01-18

2.0.x-dev → v3.0.0-RC12025-04-24

3.1.x-dev → v2026.1.02026-05-13

PHP version history (2 changes)v3.0.0-RC1PHP ~8.3.0 || ~8.4.0

v2026.1.0PHP ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/142037?v=4)[Bernhard Rusch](/maintainers/brusch)[@brusch](https://github.com/brusch)

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

![](https://www.gravatar.com/avatar/5e432b6f13b1d52dbfb51b080b09cba2a17e15c35f446b344f8a4e7d4dc3515e?d=identicon)[weisswurstkanone](/maintainers/weisswurstkanone)

---

Top Contributors

[![berfinyuksel](https://avatars.githubusercontent.com/u/99557970?v=4)](https://github.com/berfinyuksel "berfinyuksel (10 commits)")[![mattamon](https://avatars.githubusercontent.com/u/38959016?v=4)](https://github.com/mattamon "mattamon (9 commits)")[![fashxp](https://avatars.githubusercontent.com/u/8792145?v=4)](https://github.com/fashxp "fashxp (7 commits)")[![dvesh3](https://avatars.githubusercontent.com/u/5137917?v=4)](https://github.com/dvesh3 "dvesh3 (6 commits)")[![astapc](https://avatars.githubusercontent.com/u/210384374?v=4)](https://github.com/astapc "astapc (5 commits)")[![kingjia90](https://avatars.githubusercontent.com/u/6014195?v=4)](https://github.com/kingjia90 "kingjia90 (4 commits)")[![weisswurstkanone](https://avatars.githubusercontent.com/u/6142086?v=4)](https://github.com/weisswurstkanone "weisswurstkanone (3 commits)")[![bluvulture](https://avatars.githubusercontent.com/u/7668379?v=4)](https://github.com/bluvulture "bluvulture (3 commits)")[![alexz707](https://avatars.githubusercontent.com/u/562324?v=4)](https://github.com/alexz707 "alexz707 (2 commits)")[![brusch](https://avatars.githubusercontent.com/u/142037?v=4)](https://github.com/brusch "brusch (2 commits)")[![jremmurd](https://avatars.githubusercontent.com/u/9052094?v=4)](https://github.com/jremmurd "jremmurd (1 commits)")[![herbertroth](https://avatars.githubusercontent.com/u/126679157?v=4)](https://github.com/herbertroth "herbertroth (1 commits)")[![Gerhard-Kanzler](https://avatars.githubusercontent.com/u/290663?v=4)](https://github.com/Gerhard-Kanzler "Gerhard-Kanzler (1 commits)")[![pimcore-deployments](https://avatars.githubusercontent.com/u/71881008?v=4)](https://github.com/pimcore-deployments "pimcore-deployments (1 commits)")[![robertSt7](https://avatars.githubusercontent.com/u/104770750?v=4)](https://github.com/robertSt7 "robertSt7 (1 commits)")[![blankse](https://avatars.githubusercontent.com/u/998558?v=4)](https://github.com/blankse "blankse (1 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pimcore-number-sequence-generator/health.svg)

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

###  Alternatives

[pimcore/data-importer

Adds a comprehensive import functionality to Pimcore Datahub

46855.5k5](/packages/pimcore-data-importer)[pimcore/object-merger

13583.8k1](/packages/pimcore-object-merger)[pimcore/perspective-editor

Pimcore Perspective Editor

21425.7k](/packages/pimcore-perspective-editor)[pimcore/studio-ui-bundle

Pimcore Studio Ui Bundle

29118.5k19](/packages/pimcore-studio-ui-bundle)[pimcore/studio-backend-bundle

Pimcore Studio Backend Bundle

20203.9k22](/packages/pimcore-studio-backend-bundle)

PHPackages © 2026

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