PHPackages                             momenoor/filament-serial - 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. momenoor/filament-serial

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

momenoor/filament-serial
========================

A Filament V3 form macro for `TextInput` that allows you to easily format and manage serial numbers with optional prefixes, suffixes, separators, and padded digits.

v1.0.0(1y ago)010MITPHPPHP ~8.1|~8.2|~8.3|~8.4

Since May 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Momenoor/filament-serial)[ Packagist](https://packagist.org/packages/momenoor/filament-serial)[ Docs](https://github.com/momenoor/filament-serial)[ RSS](/packages/momenoor-filament-serial/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (14)Versions (2)Used By (0)

Filament Serial Field for Laravel
=================================

[](#filament-serial-field-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8dcf28223c047638a3a46817b9e84db0f3a94fe521a2657a899a1c03763ce1d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f6d656e6f6f722f66696c616d656e742d73657269616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/momenoor/filament-serial)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/e8e25dd6464fd4621a0d6a34bbf2b64d098c44cde8a4a931e2f1e1176f9585b6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f6d656e6f6f722f66696c616d656e742d73657269616c2f6669782d7068702d636f64652d7374796c652e796d6c3f6c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/momenoor/filament-serial/actions)[![Total Downloads](https://camo.githubusercontent.com/9e2fed5d2e37fa85cb8a18682f57c8deb225b0703c053095e9f281d150e1263b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f6d656e6f6f722f66696c616d656e742d73657269616c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/momenoor/filament-serial)

A Filament V3 form macro for `TextInput` that allows you to easily format and manage serial numbers with optional prefixes, suffixes, separators, and padded digits.

---

✨ Features
----------

[](#-features)

- Format serial numbers in Filament forms.
- Support for:
    - Prefix and/or suffix
    - Custom separator
    - Fixed digit zero-padded numeric part
- Automatically formats on blur and focus
- Saves only numeric part to database
- Built-in Alpine.js interactivity
- Simple integration with Filament `TextInput`

---

📦 Installation
--------------

[](#-installation)

You can install the package via Composer:

```
composer require momenoor/filament-serial
```

This package auto-registers itself. No need to publish anything.

⚙️ Usage
--------

[](#️-usage)

```
use Filament\Forms\Components\TextInput;

TextInput::make('serial_number')
    ->label('Serial Number')
    ->serial(
        prefix: 'INV',     // Optional string or Closure
        suffix: 'UAE',     // Optional string or Closure
        separator: '-',    // Default is "-"
        length: 6          // Default is 8
    );
```

### Example

[](#example)

InteractionValue ExampleOn blur`INV-000123-UAE`On focus`123`In database`000123`---

🛠 Parameters
------------

[](#-parameters)

ParameterTypeDescription`prefix`string|ClosureText before the numeric part`suffix`string|ClosureText after the numeric part`separator`stringString between segments (default: `-`)`length`intNumber of digits in the numeric part (default: `8`)---

✅ Compatibility
---------------

[](#-compatibility)

- Laravel 10+
- Filament 3.x
- PHP 8.1+

---

📄 Changelog
-----------

[](#-changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on recent changes.

---

🤝 Contributing
--------------

[](#-contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

---

🔐 Security
----------

[](#-security)

If you discover any security-related issues, please review [the security policy](../../security/policy).

---

🙌 Credits
---------

[](#-credits)

- [Momen Noor](https://github.com/momenoor)
- [All Contributors](../../contributors)

---

📜 License
---------

[](#-license)

The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance46

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

421d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5836882?v=4)[Momen Noor](/maintainers/momenoor)[@Momenoor](https://github.com/Momenoor)

---

Top Contributors

[![Momenoor](https://avatars.githubusercontent.com/u/5836882?v=4)](https://github.com/Momenoor "Momenoor (2 commits)")

---

Tags

laravelfilamentfilamentphplaravel-filamentMomenoorfilament-serial

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/momenoor-filament-serial/health.svg)

```
[![Health](https://phpackages.com/badges/momenoor-filament-serial/health.svg)](https://phpackages.com/packages/momenoor-filament-serial)
```

###  Alternatives

[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[dotswan/filament-map-picker

Easily pick and retrieve geo-coordinates using a map-based interface in your Filament applications.

128192.3k3](/packages/dotswan-filament-map-picker)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)

PHPackages © 2026

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