PHP code example of imunhatep / checkenv

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

    

imunhatep / checkenv example snippets


#...

// Load cached env vars if the .env.local.php file exists
// Run "composer dump-env prod" to create it ($_ENV[$k] = $_ENV[$k] ?? (isset($_SERVER[$k]) && 0 !== strpos($k, 'HTTP_') ? $_SERVER[$k] : $v);
    }
} elseif (!class_exists(Dotenv::class)) {
    throw new RuntimeException('Please run "composer