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

v3.0.0(1y ago)11582.5k—8.5%6[1 PRs](https://github.com/pimcore/number-sequence-generator/pulls)1proprietaryPHPPHP ~8.3.0 || ~8.4.0CI passing

Since Nov 2Pushed 1mo 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 1mo ago

READMEChangelog (10)Dependencies (2)Versions (26)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

63

—

FairBetter than 99% of packages

Maintenance71

Regular maintenance activity

Popularity45

Moderate usage in the ecosystem

Community27

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

Recently: every ~81 days

Total

20

Last Release

60d ago

Major Versions

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

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

3.1.x-dev → 2026.x-dev2026-03-20

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

2026.x-devPHP ~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

[![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)")[![berfinyuksel](https://avatars.githubusercontent.com/u/99557970?v=4)](https://github.com/berfinyuksel "berfinyuksel (6 commits)")[![kingjia90](https://avatars.githubusercontent.com/u/6014195?v=4)](https://github.com/kingjia90 "kingjia90 (4 commits)")[![bluvulture](https://avatars.githubusercontent.com/u/7668379?v=4)](https://github.com/bluvulture "bluvulture (3 commits)")[![weisswurstkanone](https://avatars.githubusercontent.com/u/6142086?v=4)](https://github.com/weisswurstkanone "weisswurstkanone (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

[dachcom-digital/formbuilder

Pimcore FormBuilder - create forms easily!

96269.7k](/packages/dachcom-digital-formbuilder)[elements/process-manager-bundle

The Process Manager allows you to manage (define,execute...) arbitrary processes/commands in the Pimcore backend.

49633.0k5](/packages/elements-process-manager-bundle)[pimcore/data-importer

Adds a comprehensive import functionality to Pimcore Datahub

44763.4k2](/packages/pimcore-data-importer)[pimcore/output-data-config-toolkit-bundle

21256.8k3](/packages/pimcore-output-data-config-toolkit-bundle)[instride/data-definitions

Data Definitions allows you to define your DataObject Imports and Exports using a nice GUI and re-run the definitions as often you like.

8117.7k](/packages/instride-data-definitions)[pimcore/object-merger

13550.4k1](/packages/pimcore-object-merger)

PHPackages © 2026

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