1. Go to this page and download the library: Download defstudio/env-alert library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
defstudio / env-alert example snippets
return [
'enabled' => (bool) env('ENV_ALERT_ENABLED', true),
/*
* Current environment, taken from APP_ENV or ENV_ALERT_ENV .env entries
*/
'current_environment' => env('ENV_ALERT_ENV', env('APP_ENV', 'production')),
/*
* Environments where to show the ribbon alert
*/
'environments' => [
'production' => [
/*
* When to display the ribbon alert.
*/
'filters' => [
'email' => [
// '[email protected]',
// '*@your.company.com'
],
'ip' => [
// '123.456.789.101'
],
],
/*
* The ribbon style
*/
'style' => [
'position' => 'right',
'background_color' => '#f30b0b',
'text_color' => '#ffffff',
],
],
],
'service_class' => \DefStudio\EnvAlert\AlertService::class,
];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.