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 1mo ago

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

31

—

LowBetter than 68% of packages

Maintenance50

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

367d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/df0ab9dbea2f8cb9d093bbd6cf9d8c8b6ce8609465b5c00b82c38e0b7a8e1ee1?d=identicon)[momenoor](/maintainers/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

[dotswan/filament-map-picker

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

124139.3k2](/packages/dotswan-filament-map-picker)[jibaymcs/filament-tour

Bring the power of DriverJs to your Filament panels and start a tour !

12247.8k](/packages/jibaymcs-filament-tour)[tapp/filament-google-autocomplete-field

Filament plugin that provides a Google Autocomplete field

3098.1k](/packages/tapp-filament-google-autocomplete-field)[rupadana/filament-announce

An easy way to shout your exceptional offerings to the potential users

5712.4k1](/packages/rupadana-filament-announce)[defstudio/filament-searchable-input

A searchable autocomplete input for Filament forms

3212.4k](/packages/defstudio-filament-searchable-input)[spatie/filament-simple-stats

Opinionated prebuilt stat widgets to quickly add to your Filament dashboards.

2317.9k](/packages/spatie-filament-simple-stats)

PHPackages © 2026

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