Download the PHP package la-souris/filament-env-indicator without Composer
On this page you can find all versions of the php package la-souris/filament-env-indicator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download la-souris/filament-env-indicator
More information about la-souris/filament-env-indicator
Files in la-souris/filament-env-indicator
Download la-souris/filament-env-indicator
More information about la-souris/filament-env-indicator
Files in la-souris/filament-env-indicator
Vendor la-souris
Package filament-env-indicator
Short Description Filament v5 plugin to change the header color according to environment
License MIT
Package filament-env-indicator
Short Description Filament v5 plugin to change the header color according to environment
License MIT
Please rate this library. Is it a good library?
Informations about the package filament-env-indicator
Filament Environment Indicator
la-souris/filament-env-indicator is a Filament v5 plugin that makes non-production panels visually obvious by:
- recoloring the Filament topbar,
- recoloring the global search field to match,
- and adding a small environment badge before global search.
This helps avoid mistakes when switching between local, staging-like, and demo/admin environments.
Example
Requirements
- PHP
^8.5 - Filament
^5.6
Installation
Basic usage
Register the plugin on your panel provider:
Default behavior
- Nothing is shown in
production(styles and badge are disabled). - Defaults are provided for:
localanddevelopment(green),demo(amber),acceptance(red).
- Environments not registered on the plugin are ignored.
- The badge text is the current Laravel environment name (
app()->environment()). - The current git branch is included as the badge tooltip (
title) when available.
Customizing environments
Use environment() to add new environment themes or override defaults:
Method signature:
$paletteshould be a Filament color palette (for exampleColor::Blue).- Shade values like
'50','500','800'must exist on the palette.
Testing
Credits
This package is inspired by pxlrbt/filament-environment-indicator.
All versions of filament-env-indicator with dependencies
PHP Build Version
Package Version
The package la-souris/filament-env-indicator contains the following files
Loading the files please wait ...