larakitdev / envbar
This package will show on the top of every page a fancy alert with the environment and the current branch information.
1.0.0
2023-07-16 01:31 UTC
Requires
- php: ^7.3|^8.0
Requires (Dev)
- ext-json: *
- guzzlehttp/guzzle: ^7.5
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.5
README
Envbar is a simple package that will add a colored bar to the top of your pages to indicate the current environment and the current branch or release.
Installation
To install this package is very simple, you just need to install it with composer:
composer require --dev larakitdev/envbar
After installing, you need to publish the assets and the configuration file:
php artisan vendor:publish --provider="LaraKit\EnvBar\EnvBarServiceProvider" --tag="assets" php artisan vendor:publish --provider="LaraKit\EnvBar\EnvBarServiceProvider" --tag="config"
To keep the assets up-to-date and avoid issues in future updates, you may add the envbar:publish
command to the
post-update-cmd
scripts in your application's composer.json
file:
{ "scripts": { "post-update-cmd": [ "@php artisan envbar:publish --ansi" ] } }
Configuration
The configuration file is located in config/envbar.php
. All the necessary instructions are in the file.