PHPackages                             awcodes/filament-badgeable-column - 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. awcodes/filament-badgeable-column

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

awcodes/filament-badgeable-column
=================================

Filament Tables column to append and prepend badges.

v4.0.0(5mo ago)146532.3k↓10.5%21[1 PRs](https://github.com/awcodes/filament-badgeable-column/pulls)4MITPHPPHP ^8.2CI passing

Since Nov 23Pushed 4d ago2 watchersCompare

[ Source](https://github.com/awcodes/filament-badgeable-column)[ Packagist](https://packagist.org/packages/awcodes/filament-badgeable-column)[ Docs](https://github.com/awcodes/filament-badgeable-column)[ GitHub Sponsors](https://github.com/awcodes)[ RSS](/packages/awcodes-filament-badgeable-column/feed)WikiDiscussions 4.x Synced 2d ago

READMEChangelog (10)Dependencies (9)Versions (39)Used By (4)

Badgeable Column
================

[](#badgeable-column)

Display additional context as badges alongside your Filament table column values.

[![Latest Version](https://camo.githubusercontent.com/efc4728cdbc7c8ac73d494699a30decb50392c8a0a9f3a39f3440e304c4e4f61/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6177636f6465732f66696c616d656e742d626164676561626c652d636f6c756d6e2e7376673f7374796c653d666c61742d73717561726526636f6c6f723d626c7565266c6162656c3d52656c65617365)](https://github.com/awcodes/filament-badgeable-column/releases)[![MIT Licensed](https://camo.githubusercontent.com/a7e65aee57b11d28e4caff8b945729a66be0bb663f7f93bd24c5aa65699f148e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/04e85d3984e84db58a9cb8ff7c0a63f21ac4007c2ec215bad00f86e973c11786/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6177636f6465732f66696c616d656e742d626164676561626c652d636f6c756d6e2e7376673f7374796c653d666c61742d73717561726526636f6c6f723d626c7565266c6162656c3d446f776e6c6f616473)](https://packagist.org/packages/awcodes/filament-badgeable-column)[![GitHub Repo stars](https://camo.githubusercontent.com/3325171de205e6c8be81457945929c71fd9f5d8014762988874ae538f2d120ab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6177636f6465732f66696c616d656e742d626164676561626c652d636f6c756d6e3f7374796c653d666c61742d73717561726526636f6c6f723d626c7565266c6162656c3d5374617273)](https://github.com/awcodes/filament-badgeable-column/stargazers)[![Filament Version](https://camo.githubusercontent.com/bbef05c33db7b3cdd06be3d93caf852efe0c0214a421c03afba376ab9793200a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f46696c616d656e742d352e782d6439373730362e7376673f7374796c653d666c61742d737175617265)](https://filamentphp.com/docs/5.x/panels/installation)

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

[](#compatibility)

Package VersionFilament Version1.x2.x2.x3.x3.x4.x4.x5.xInstallation
------------

[](#installation)

You can install the package via composer:

```
composer require awcodes/filament-badgeable-column
```

Important

If you have not set up a custom theme and are using Filament Panels follow the instructions in the [Filament Docs](https://filamentphp.com/docs/4.x/styling/overview#creating-a-custom-theme) first. The following applies to both the Panels Package and the standalone Tables package.

After setting up a custom theme add the plugin's views to your theme css file or your app's css file if using the standalone tables package.

```
@source '../../../../vendor/awcodes/filament-badgeable-column/resources/**/*.blade.php';
```

Usage
-----

[](#usage)

```
use Awcodes\BadgeableColumn\Components\Badge;
use Awcodes\BadgeableColumn\Components\BadgeableColumn;

return $table
    ->columns([
        BadgeableColumn::make('name')
            ->prefixBadges([
                Badge::make('brand_name')
                    ->label(fn(Model $record) => $record->status)
                    ->color(function(Model $record) {
                        return match ($record->status) {
                            'active' => 'success',
                            'inactive' => 'danger',
                            default => 'warning',
                        };
                    })
            ])
            ->suffixBadges([
                Badge::make('hot')
                    ->label('Hot')
                    ->color('danger')
                    ->visible(fn(Model $record) => $record->qty < 5),
            ]),
    ]);
```

You can also define the array of badges via a closure, if you want the array of badges to be based on dynamic data. The closure should return an array of `Badge` objects, similar to above.

The example below assumes the records have a `BelongsToMany` relationship called `topics`, and shows how to display each topic name as a badge.

```
use Awcodes\BadgeableColumn\Components\Badge;
use Awcodes\BadgeableColumn\Components\BadgeableColumn;

return $table
    ->columns([
        BadgeableColumn::make('title')
            ->suffixBadges(function($record) {
                  return $record->topics->map(function($topic) {
                    return Badge::make($topic->name)->color($topic->color);
                  });
            })
            ->searchable()
            ->sortable(),
    ]);
```

Badge Shape
-----------

[](#badge-shape)

If you prefer to have a more "rounded" shape you can use the `asPills()` method to set the shape of the badges.

```
use Awcodes\BadgeableColumn\Components\Badge;
use Awcodes\BadgeableColumn\Components\BadgeableColumn;

return $table
    ->columns([
        BadgeableColumn::make('name')
            ->asPills()
    ]);
```

Separator
---------

[](#separator)

The default separator between the column text and the badges is '—'. If you would like to use a different separator, use the `separator()` method to set a character to be used as a separator.

```
use Awcodes\BadgeableColumn\Components\Badge;
use Awcodes\BadgeableColumn\Components\BadgeableColumn;

return $table
    ->columns([
        BadgeableColumn::make('name')
            ->separator(':')
    ]);
```

Font Family
-----------

[](#font-family)

If you would like to use a different font family for the badges, you can use the `fontFamily()` method to set the font family.

```
use Awcodes\BadgeableColumn\Components\Badge;
use Awcodes\BadgeableColumn\Components\BadgeableColumn;
use Filament\Support\Enums\FontFamily;

return $table
    ->columns([
        BadgeableColumn::make('name')
            ->fontFamily(FontFamily::Mono)
    ]);
```

Font Weight
-----------

[](#font-weight)

If you would like to use a different font weight for the badges, you can use the `weight()` method to set the font weight.

```
use Awcodes\BadgeableColumn\Components\Badge;
use Awcodes\BadgeableColumn\Components\BadgeableColumn;
use Filament\Support\Enums\FontWeight;

return $table
    ->columns([
        BadgeableColumn::make('name')
            ->weight(FontWeight::Bold)
    ]);
```

Size
----

[](#size)

If you would like to use a different size for the badges, you can use the `size()` method to set the size.

```
use Awcodes\BadgeableColumn\Components\Badge;
use Awcodes\BadgeableColumn\Components\BadgeableColumn;
use Filament\Support\Enums\Size;

return $table
    ->columns([
        BadgeableColumn::make('name')
            ->size(Size::Small)
    ]);
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [awcodes](https://github.com/awcodes)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

63

—

FairBetter than 99% of packages

Maintenance87

Actively maintained with recent releases

Popularity54

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 62.1% 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 ~37 days

Recently: every ~56 days

Total

36

Last Release

5d ago

Major Versions

1.x-dev → v2.0.12023-09-12

v2.3.3 → v3.0.0-beta.12025-06-11

v2.3.4 → v3.1.02026-01-16

v3.1.0 → v4.0.02026-01-19

3.x-dev → 4.x-dev2026-06-29

PHP version history (3 changes)v1.0.0PHP ^8.0

v2.0.0-alpha1PHP ^8.1

v3.0.0-beta.1PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3596800?v=4)[Adam Weston](/maintainers/awcodes)[@awcodes](https://github.com/awcodes)

---

Top Contributors

[![awcodes](https://avatars.githubusercontent.com/u/3596800?v=4)](https://github.com/awcodes "awcodes (90 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (25 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (13 commits)")[![howdu](https://avatars.githubusercontent.com/u/533658?v=4)](https://github.com/howdu "howdu (5 commits)")[![SimonBarrettACT](https://avatars.githubusercontent.com/u/57679318?v=4)](https://github.com/SimonBarrettACT "SimonBarrettACT (5 commits)")[![sakanjo](https://avatars.githubusercontent.com/u/121197517?v=4)](https://github.com/sakanjo "sakanjo (2 commits)")[![dave-mills](https://avatars.githubusercontent.com/u/5711101?v=4)](https://github.com/dave-mills "dave-mills (2 commits)")[![ziming](https://avatars.githubusercontent.com/u/679513?v=4)](https://github.com/ziming "ziming (1 commits)")[![iAmKevinMcKee](https://avatars.githubusercontent.com/u/4503765?v=4)](https://github.com/iAmKevinMcKee "iAmKevinMcKee (1 commits)")[![patriktoth67](https://avatars.githubusercontent.com/u/47533464?v=4)](https://github.com/patriktoth67 "patriktoth67 (1 commits)")

---

Tags

filamentfilament-pluginpluginlaravelfilamentawcodesbadgeable-column

###  Code Quality

TestsPest

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/awcodes-filament-badgeable-column/health.svg)

```
[![Health](https://phpackages.com/badges/awcodes-filament-badgeable-column/health.svg)](https://phpackages.com/packages/awcodes-filament-badgeable-column)
```

###  Alternatives

[awcodes/filament-curator

A media picker plugin for FilamentPHP.

437356.9k24](/packages/awcodes-filament-curator)[ysfkaya/filament-phone-input

A phone input component for Laravel Filament

3161.3M25](/packages/ysfkaya-filament-phone-input)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

84215.9k9](/packages/stephenjude-filament-two-factor-authentication)

PHPackages © 2026

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