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

ActiveWindwalker-package[Utility &amp; Helpers](/categories/utility)

lyrasoft/sequence
=================

LYRASOFT sequence package.

1.1.0(8mo ago)14.4k↓47.1%3MITPHPPHP &gt;=8.4.6

Since Mar 3Pushed 8mo ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (4)Used By (3)

LYRASOFT Sequence Package
=========================

[](#lyrasoft-sequence-package)

To get unique serial numbers for any record.

Installation
------------

[](#installation)

Install from composer

```
composer require lyrasoft/sequence
```

Then copy files to project

```
php windwalker pkg:install lyrasoft/sequence -t migrations
```

You must manually add `SequencePackage::class` to `etc/di.php`

```
// ...

    'providers' => [
        \Lyrasoft\Sequence\SequencePackage::class
    ],

// ...
```

Usage
=====

[](#usage)

```
$sequenceServcie = $app->service(\Lyrasoft\Sequence\Service\SequenceService::class);

$serial = $sequenceServcie->getNextSerial('order', 'FN-'); // 15
$serial = $sequenceServcie->getNextSerialAndPadZero('order', 'FN-', 7); // 0000015
$serial = $sequenceServcie->getNextSerialWithPrefix('order', 'FN-', 7); // FN-0000015
```

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance58

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity69

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

Total

3

Last Release

267d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1639206?v=4)[Simon Asika](/maintainers/asika32764)[@asika32764](https://github.com/asika32764)

---

Top Contributors

[![asika32764](https://avatars.githubusercontent.com/u/1639206?v=4)](https://github.com/asika32764 "asika32764 (7 commits)")

---

Tags

luna-package

### Embed Badge

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

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

###  Alternatives

[jonathanbird/feature-switch

Feature switching made easy

2634.5k](/packages/jonathanbird-feature-switch)[monsieurbiz/sylius-alert-message-plugin

Adds a simple message on top of your shop.

1326.0k](/packages/monsieurbiz-sylius-alert-message-plugin)[swissup/module-font-awesome

FontAwesome for Magento2

117.2k1](/packages/swissup-module-font-awesome)

PHPackages © 2026

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