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.0(3mo ago)810.5k—4.5%21MITPHPPHP ^8.1CI passing

Since Jul 17Pushed 3mo 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 1mo ago

READMEChangelog (6)Dependencies (12)Versions (7)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

46

—

FairBetter than 93% of packages

Maintenance78

Regular maintenance activity

Popularity33

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.9% 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 ~38 days

Total

6

Last Release

117d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3373e84f9f84b64f359e516f97a85f2deb07122e70411f25f11a667969a16f2c?d=identicon)[Deldius](/maintainers/Deldius)

---

Top Contributors

[![Deldius](https://avatars.githubusercontent.com/u/29043998?v=4)](https://github.com/Deldius "Deldius (13 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

[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[jibaymcs/filament-tour

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

12247.8k](/packages/jibaymcs-filament-tour)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

9169.0k4](/packages/marcelweidum-filament-expiration-notice)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[outerweb/filament-settings

Filament integration for the outerweb/settings package

3690.9k4](/packages/outerweb-filament-settings)

PHPackages © 2026

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