PHPackages                             deldius/filament-user-field - 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. deldius/filament-user-field

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

deldius/filament-user-field
===========================

Utility fields for User: Entry, Input, Column

1.1.1(2w ago)918.6k↓10.6%2[2 PRs](https://github.com/Deldius/filament-user-field/pulls)1MITPHPPHP ^8.1CI passing

Since Jul 17Pushed 1w agoCompare

[ Source](https://github.com/Deldius/filament-user-field)[ Packagist](https://packagist.org/packages/deldius/filament-user-field)[ Docs](https://github.com/deldius/filament-user-field)[ GitHub Sponsors](https://github.com/Deldius)[ RSS](/packages/deldius-filament-user-field/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (7)Dependencies (24)Versions (10)Used By (1)

Utility fields for User: Entry, Column
======================================

[](#utility-fields-for-user-entry-column)

[![Latest Version on Packagist](https://camo.githubusercontent.com/76176f530000847ffea8fc4cdcca84921eba82eede618cccb6c1a63d6feb1693/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64656c646975732f66696c616d656e742d757365722d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/deldius/filament-user-field)[![GitHub Tests Action Status](https://camo.githubusercontent.com/35476db72e5b1156a0857493544376fb0a57811afc60477bd4a08509e711e062/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64656c646975732f66696c616d656e742d757365722d6669656c642f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/deldius/filament-user-field/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/55c408bcbcd6c203634dcb4a128eea36e6f88ef6d6ac0cab01c2175b619bbb5d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64656c646975732f66696c616d656e742d757365722d6669656c642f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/deldius/filament-user-field/actions?query=workflow%3A%22Fix+PHP+code+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/a39ff17135cb456be7fae81a16f20132637539c91e2b27034f02223decd62046/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64656c646975732f66696c616d656e742d757365722d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/deldius/filament-user-field)

This is a plugin for Filament v4

Screenshots
-----------

[](#screenshots)

[![Light theme](assets/example1.jpg)](assets/example1.jpg)[![Dark theme](assets/example2.jpg)](assets/example2.jpg)

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

[](#installation)

You can install the package via composer:

```
composer require deldius/filament-user-field
```

You can publish the config file with:

```
php artisan vendor:publish --tag="filament-user-field-config"
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="filament-user-field-views"
```

This is the contents of the published config file:

```
return [
    'user_model' => [
        'class' => \App\Models\User::class, // Default user model
        'fields' => [
            'id' => 'id', // Default user model ID field
            'avatar_url' => 'avatar_url', // Default user model avatar field
            'heading' => 'name', // Default user model name field
            'description' => 'email', // Default user model email field
        ],
    ],
    'active_state' => [
        'show' => false, // Show active state by default
        'field' => 'is_active', // Default field for active state
    ],
];
```

Usage
-----

[](#usage)

### UserColumn (for Filament Tables)

[](#usercolumn-for-filament-tables)

Display user information in a Filament table column:

```
use Deldius\UserField\UserColumn;
use Filament\Support\Enums\Size;

UserColumn::make('user_id')
    ->showActiveState() // Show active/inactive indicator
    ->size(Size::Small) // Set avatar size
    ->label('User') // Column label
```

Add `UserColumn` to your Filament table columns:

```
public static function configure(Table $table): Table
{
    return [
        UserColumn::make('user_id'),
        // ...other columns
    ];
}
```

All available options:

```
use Deldius\UserField\UserColumn;
use Filament\Support\Enums\Size;

UserColumn::make('user_id')
    ->showActiveState(true) // Show active/inactive indicator
    ->isActiveState(fn($user) => $user->is_active) // Custom active state logic
    ->showAvatar(true) // Show avatar
    ->avatarUrl(fn($user) => $user->avatar_url) // Custom avatar URL
    ->size(Size::Small) // Set avatar size
    ->heading(fn($user) => $user->name) // Custom heading
    ->description(fn($user) => $user->email) // Custom description
    ->emptyState(view('empty')) // Custom empty state view
    ->emptyStateHeading('No user') // Custom empty state heading
    ->emptyStateDescription('No user found') // Custom empty state description
    ->label('User') // Column label
```

Add `UserColumn` to your Filament table columns:

```
public static function configure(Table $table): Table
{
    return [
        UserColumn::make('user_id'),
        // ...other columns
    ];
}
```

### UserEntry (for Filament Infolists)

[](#userentry-for-filament-infolists)

Display user information in a Filament infolist entry:

```
use Deldius\UserField\UserEntry;
use Filament\Support\Enums\Size;

UserEntry::make('user_id')
    ->showActiveState() // Show active/inactive indicator
    ->size(Size::Small) // Set avatar size
    ->label('User') // Entry label
```

Add `UserEntry` to your Filament infolist schema:

```
public static function configure(Schema $schema): Schema
{
    return [
        UserEntry::make('user_id'),
        // ...other items
    ];
}
```

Display user information in a Filament infolist entry. All available options:

```
use Deldius\UserField\UserEntry;
use Filament\Support\Enums\Size;

UserEntry::make('user_id')
    ->showActiveState(true) // Show active/inactive indicator
    ->isActiveState(fn($user) => $user->is_active) // Custom active state logic
    ->showAvatar(true) // Show avatar
    ->avatarUrl(fn($user) => $user->avatar_url) // Custom avatar URL
    ->size(Size::Small) // Set avatar size
    ->heading(fn($user) => $user->name) // Custom heading
    ->description(fn($user) => $user->email) // Custom description
    ->emptyState(view('empty')) // Custom empty state view
    ->emptyStateHeading('No user') // Custom empty state heading
    ->emptyStateDescription('No user found') // Custom empty state description
    ->label('User') // Entry label
```

Add `UserEntry` to your Filament infolist schema:

```
public static function configure(Schema $schema): Schema
{
    return [
        UserEntry::make('user_id'),
        // ...other items
    ];
}
```

### UserSelect (for Filament Form)

[](#userselect-for-filament-form)

*Planned feature: UserSelect support for Filament Form is in development and will be added in a future release.*

Testing
-------

[](#testing)

```
composer test
```

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)

- [Trung](https://github.com/Deldius)

License
-------

[](#license)

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

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance97

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.2% 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 ~55 days

Recently: every ~75 days

Total

7

Last Release

19d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29043998?v=4)[Trung](/maintainers/Deldius)[@Deldius](https://github.com/Deldius)

---

Top Contributors

[![Deldius](https://avatars.githubusercontent.com/u/29043998?v=4)](https://github.com/Deldius "Deldius (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")[![jasonencode](https://avatars.githubusercontent.com/u/2210843?v=4)](https://github.com/jasonencode "jasonencode (1 commits)")

---

Tags

laravelDeldiusfilament-user-field

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/deldius-filament-user-field/health.svg)

```
[![Health](https://phpackages.com/badges/deldius-filament-user-field/health.svg)](https://phpackages.com/packages/deldius-filament-user-field)
```

###  Alternatives

[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)[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)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

94135.4k5](/packages/marcelweidum-filament-expiration-notice)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

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

About

104162.2k2](/packages/stephenjude-filament-debugger)

PHPackages © 2026

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