PHP code example of alexoliverwd / dotenv-loader

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

    

alexoliverwd / dotenv-loader example snippets


\AOWD\envLoader\ResourceLoader::applyEnvironmentVariables(__DIR__ . '/.env');

loadResource(
	string $resource_location
): array

applyEnvironmentVariables(
	string $resource_location
): void

encryptEnvironmentVariables(
	array $environment_variables,
	string $public_key_content
): array

decryptEnvironmentVariables(
	array $environment_variables,
	string $private_key_content
): array