New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

esign/laravel-environment-badge

Display a warning badge for certain app environments
5,449 1
Install
composer require esign/laravel-environment-badge
Latest Version:1.5.0
PHP:^7.4|^8.0
Laravel:8 – 13
License:MIT
Last Updated:Mar 17, 2026
Links: GitHub  ·  Packagist
Maintainer: esign

Display a warning badge for certain app environments

Latest Version on Packagist Total Downloads GitHub Actions

Display a badge for testing or staging environments. This package is Esign-branded, feel free to fork and change it to fit your own needs.

Installation

You can install the package via composer:

composer require esign/laravel-environment-badge

The package will automatically register a service provider.

Next up, you can optionally publish the configuration and language files:

php artisan vendor:publish --provider="Esign\EnvironmentBadge\EnvironmentBadgeServiceProvider" --tag="config"
php artisan vendor:publish --provider="Esign\EnvironmentBadge\EnvironmentBadgeServiceProvider" --tag="lang"

Usage

To display the environment badge you may use the view component that ships with this package:

<x-environment-badge />

To enable this badge for certain environments you may set the ENVIRONMENT_BADGE_ENABLED environment variable to true:

ENVIRONMENT_BADGE_ENABLED=true

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.

Related Packages

esign/laravel-email-whitelisting

Whitelist outgoing email

24,913 4
esign/laravel-linkable

Dynamically link Laravel models

21,423 0
esign/laravel-query-filters

Apply filters to Laravel's query builder.

15,201 0
esign/laravel-breadcrumbs

Manage breadcrumbs within your Laravel application

14,534 0
esign/laravel-model-files

Associate files with your Laravel Models

13,202 0

Version History

Version Released PHP Laravel License
1.5.0 ^7.4|^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
1.4.0 ^7.4|^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0 MIT
1.3.0 ^7.4|^8.0 ^8.0|^9.0|^10.0|^11.0|^12.0 MIT
1.2.0 ^7.4|^8.0 ^8.0|^9.0|^10.0|^11.0 MIT
1.1.4 ^7.4|^8.0 ^8.0|^9.0|^10.0 MIT