PHPackages                             chaim-chv/filament-enum-plural-label - 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. chaim-chv/filament-enum-plural-label

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

chaim-chv/filament-enum-plural-label
====================================

Plural label contract for PHP enums used with Laravel and Filament

v1.0.1(3mo ago)116MITPHPPHP ^8.1

Since Jan 8Pushed 3mo agoCompare

[ Source](https://github.com/chaim-chv/filament-enum-plural-label)[ Packagist](https://packagist.org/packages/chaim-chv/filament-enum-plural-label)[ RSS](/packages/chaim-chv-filament-enum-plural-label/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

filament-enum-plural-label
==========================

[](#filament-enum-plural-label)

A small Laravel + Filament helper library that allows PHP enums to expose a plural label for use in Filament resources, navigation, and tables.

This package provides a single contract. It does not register hooks, override Filament behavior, or add magic.

Compatibility
-------------

[](#compatibility)

- PHP 8.1+
- Laravel 10+
- Filament v3+

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

[](#installation)

```
composer require chaim-chv/filament-enum-plural-label
```

Usage
-----

[](#usage)

Define an enum that implements the contract:

```
use FilamentEnumPluralLabel\Contracts\HasPluralLabel;

enum UserRole: string implements HasPluralLabel
{
    case Admin = 'admin';
    case Editor = 'editor';
    case Viewer = 'viewer';

    public function getPluralLabel(): string
    {
        return match ($this) {
            self::Admin => 'Administrators',
            self::Editor => 'Editors',
            self::Viewer => 'Viewers',
        };
    }
}
```

Filament example
----------------

[](#filament-example)

```
public static function getPluralModelLabel(): string
{
    $role = UserRole::tryFrom(request('role'));

    if ($role instanceof HasPluralLabel) {
        return $role->getPluralLabel();
    }

    return 'Users';
}
```

[@chaim-chv](https://github.com/chaim-chv/) © 2026

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance78

Regular maintenance activity

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

Every ~5 days

Total

2

Last Release

118d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/781b387d5946eecb49b824393af93e006e332495692fd3847528311f9070b87d?d=identicon)[chaim-chv](/maintainers/chaim-chv)

---

Top Contributors

[![chaim-chv](https://avatars.githubusercontent.com/u/61952908?v=4)](https://github.com/chaim-chv "chaim-chv (5 commits)")

---

Tags

enumfilamentphp

### Embed Badge

![Health badge](/badges/chaim-chv-filament-enum-plural-label/health.svg)

```
[![Health](https://phpackages.com/badges/chaim-chv-filament-enum-plural-label/health.svg)](https://phpackages.com/packages/chaim-chv-filament-enum-plural-label)
```

PHPackages © 2026

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