PHP code example of threls / check-env

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

    

threls / check-env example snippets


return [

    'temp-env-suffix' => 'test',
    'environments' => [
        'staging' => [
            'encryption-key' => '',
        ],

        // Users can add as many environments as they want:
        // 'production' => [
        //     'encryption-key' => '',
        // ],

   'files' => [
        '.env',
        '.env.example',
        '.env.staging',
        // Users can add as many env files as they want:
    ],
    /* Show values on env diff table */
    'show_values' => false,

    ],
];

 php artisan check-env

 php artisan check-env-ci --env=  --key=