PHP code example of dotenv-org / phpdotenv-vault

1. Go to this page and download the library: Download dotenv-org/phpdotenv-vault 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/ */

    

dotenv-org / phpdotenv-vault example snippets




$dotenv = DotenvVault\DotenvVault::createImmutable([__DIR__]);
$dotenv->safeLoad();

$s3_bucket = $_SERVER['S3_BUCKET'];
echo $s3_bucket;