PHP code example of jainilnagar / env-beacon

1. Go to this page and download the library: Download jainilnagar/env-beacon 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/ */

    

jainilnagar / env-beacon example snippets




return [
    '*' => [
        'source' => 'auto',
        'colorMode' => 'auto',
        'showOnFrontend' => true,
    ],

    'dev' => [
        'label' => 'Local',
        'source' => 'custom',
        'colorMode' => 'custom',
        'customColor' => '#2563eb',
    ],

    'staging' => [
        'label' => 'Staging',
        'source' => 'custom',
        'colorMode' => 'custom',
        'customColor' => '#d97706',
    ],

    'production' => [
        'label' => 'Production',
        'source' => 'custom',
        'colorMode' => 'custom',
        'customColor' => '#dc2626',
        'adminsOnly' => true,
    ],
];
text
config/env-beacon.php