PHPackages                             jeffersongoncalves/filament-sensible-defaults - 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. jeffersongoncalves/filament-sensible-defaults

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

jeffersongoncalves/filament-sensible-defaults
=============================================

A Filament plugin that applies a curated set of sensible, opinionated UI defaults across your panels (actions, forms, selects, date-time pickers, tables, pages and display formats) with config-driven, per-block opt-outs.

1.0.0(today)10MITPHPPHP ^8.3CI passing

Since Jun 20Pushed today1 watchersCompare

[ Source](https://github.com/jeffersongoncalves/filament-sensible-defaults)[ Packagist](https://packagist.org/packages/jeffersongoncalves/filament-sensible-defaults)[ Docs](https://github.com/jeffersongoncalves/filament-sensible-defaults)[ GitHub Sponsors](https://github.com/jeffersongoncalves)[ RSS](/packages/jeffersongoncalves-filament-sensible-defaults/feed)WikiDiscussions 1.x Synced today

READMEChangelog (3)Dependencies (7)Versions (2)Used By (0)

[![Filament Sensible Defaults](https://raw.githubusercontent.com/jeffersongoncalves/filament-sensible-defaults/1.x/art/jeffersongoncalves-filament-sensible-defaults.png)](https://raw.githubusercontent.com/jeffersongoncalves/filament-sensible-defaults/1.x/art/jeffersongoncalves-filament-sensible-defaults.png)

Filament Sensible Defaults
==========================

[](#filament-sensible-defaults)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8ceab5d5d93b5afef7ba1cfb4fd94e579e1faaa5fafa6cd0a18f30e05da59f5e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d73656e7369626c652d64656661756c74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeffersongoncalves/filament-sensible-defaults)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/ad17f0cef9576c9c0500bd94b6295e8d162a309a498ed22f68b67d40394c8730/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d73656e7369626c652d64656661756c74732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d312e78266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/jeffersongoncalves/filament-sensible-defaults/actions?query=workflow%3A%22Fix+PHP+code+styling%22+branch%3A1.x)[![Tests](https://camo.githubusercontent.com/d3ad289e4c80d9383d89fb2fbb16ae8f717efe323f2b43866aca4cde3db3e8f4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d73656e7369626c652d64656661756c74732f72756e2d74657374732e796d6c3f6272616e63683d312e78266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/jeffersongoncalves/filament-sensible-defaults/actions?query=workflow%3Arun-tests+branch%3A1.x)[![Total Downloads](https://camo.githubusercontent.com/7bae4ccf58938ad8b040f3884843aaccce210a16e83bab633ac7093f2e7fbdfd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d73656e7369626c652d64656661756c74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeffersongoncalves/filament-sensible-defaults)[![License](https://camo.githubusercontent.com/34ab6be2c89b0f4bb5cbf4580c3957fe0b1ad4a3a3c798674b1e510a84059fac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d73656e7369626c652d64656661756c74732e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

A Filament plugin that applies a curated set of sensible, opinionated UI defaults across your panels — actions, forms, selects, date-time pickers, tables, pages and display formats — so every Resource, Page and Widget inherits consistent behaviour without repeating configuration. Every block is config-driven and can be opted out of individually.

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

[](#compatibility)

BranchFilamentPHPLaravel**1.x****5.x****^8.3****^12.0 | ^13.0**Installation
------------

[](#installation)

You can install the package via composer:

```
composer require jeffersongoncalves/filament-sensible-defaults
```

Optionally publish the config file:

```
php artisan vendor:publish --tag=filament-sensible-defaults-config
```

Usage
-----

[](#usage)

By default the plugin **auto-registers** and applies every enabled block of defaults globally — no panel wiring required. Just install it and your panels inherit the defaults.

If you prefer explicit, per-panel control, set `auto_register` to `false` in `config/sensible-defaults.php` and register the plugin on your `PanelProvider`:

```
use JeffersonGoncalves\Filament\SensibleDefaults\FilamentSensibleDefaultsPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugin(
            FilamentSensibleDefaultsPlugin::make()
                ->selectDefaults(false)   // opt a block out fluently
                ->datetimeDefaults()      // or keep one explicitly on
        );
}
```

### What it sets

[](#what-it-sets)

BlockDefault behaviour`translate_labels``translateLabel()` on every Field, Infolist Entry and Table Column`action_defaults`Action `modalWidth(Medium)` + `closeModalByClickingAway(false)`; Create/Edit/Delete/View Heroicons + `hiddenLabel()`; `ActionGroup` ellipsis icon`select_defaults``Select` → `native(false)`, auto `searchable()`/`preload()` for relationships, `selectablePlaceholder()` when not required`datetime_defaults``DateTimePicker` → `seconds(false)` + `maxDate('9999-12-31T23:59')``fileupload_defaults``FileUpload` → `moveFiles()``repeater_defaults``Repeater` / `Builder` delete actions require confirmation`form_defaults``ToggleButtons` inline + grouped, `TextInput` `minValue(0)`, `Textarea` `rows(4)``page_defaults`Validation errors rendered as a danger Notification; non-sticky form actions`table_defaults``filtersFormWidth('md')`, pagination options `[5, 10, 25, 50]`, lazy-loaded image columns, non-native select filters`format_defaults`Schema &amp; Table currency / date / datetime / time display formats (see `formats` in the config)### Configuration

[](#configuration)

Each block is a boolean toggle and the display formats are fully customisable in `config/sensible-defaults.php`:

```
return [
    'auto_register' => true,

    'translate_labels' => true,
    'action_defaults' => true,
    'select_defaults' => true,
    'datetime_defaults' => true,
    'fileupload_defaults' => true,
    'repeater_defaults' => true,
    'form_defaults' => true,
    'page_defaults' => true,
    'table_defaults' => true,
    'format_defaults' => true,

    'formats' => [
        'currency' => 'brl',
        'date_display_format' => 'M j, Y',
        'iso_date_display_format' => 'L',
        'datetime_display_format' => 'M j, Y H:i:s',
        'iso_datetime_display_format' => 'LLL',
        'number_locale' => null,
        'time_display_format' => 'H:i:s',
        'iso_time_display_format' => 'LT',
    ],
];
```

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)

- [Jefferson Goncalves](https://github.com/jeffersongoncalves)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~0 days

Total

2

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/411493?v=4)[Jefferson Gonçalves](/maintainers/jeffersongoncalves)[@jeffersongoncalves](https://github.com/jeffersongoncalves)

---

Top Contributors

[![jeffersongoncalves](https://avatars.githubusercontent.com/u/411493?v=4)](https://github.com/jeffersongoncalves "jeffersongoncalves (6 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

configurationdefaultsfilamentfilament-pluginjeffersongoncalveslaravellaravel-packagephplaravelfilamentjeffersongoncalvesfilament-sensible-defaults

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/jeffersongoncalves-filament-sensible-defaults/health.svg)

```
[![Health](https://phpackages.com/badges/jeffersongoncalves-filament-sensible-defaults/health.svg)](https://phpackages.com/packages/jeffersongoncalves-filament-sensible-defaults)
```

###  Alternatives

[ysfkaya/filament-phone-input

A phone input component for Laravel Filament

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

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)[dotswan/filament-map-picker

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

128173.7k3](/packages/dotswan-filament-map-picker)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122157.7k1](/packages/stephenjude-filament-feature-flags)[creagia/filament-code-field

A Filamentphp input field to edit or view code data.

57301.3k3](/packages/creagia-filament-code-field)[jibaymcs/filament-tour

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

12351.0k](/packages/jibaymcs-filament-tour)

PHPackages © 2026

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