Skip to content

tomgrv/laravel-envribbon

 
 

Repository files navigation

Laravel Env Ribbon

GitHub Workflow Status styleci

Packagist Packagist Packagist

Commitizen friendly semantic-release

Buy me a coffee

This package displays a top-left corner ribbon with APP_ENV value & version number on all pages

Installation

Install via composer

composer require perspikapps/laravel-envribbon

Publish package assets

php artisan vendor:publish --provider="Perspikapps\LaravelEnvRibbon\EnvRibbonServiceProvider"

Usage

Version is handled by avto-dev/app-version-laravel package: fill in VERSION file at project root.

Fill in configuration according to your needs:

return [

    'enabled' => env('APP_RIBBON', true),

    'environments' => [

        'production' => [
            'visible' =>
            env('APP_DEBUG', false),
            'color' => 'limeGreen',
        ],

        'staging' => [
            'visible' => true,
            'color' => 'darkorange',
        ],

        '*' => [
            'visible' => true,
            'color' => 'crimson',
        ]
    ]

];

Security

If you discover any security related issues, please email instead of using the issue tracker.

Credits

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 82.3%
  • CSS 13.7%
  • Vue 4.0%