PHP code example of jsefton / php-dotenv-parser
1. Go to this page and download the library: Download jsefton/php-dotenv-parser 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/ */
jsefton / php-dotenv-parser example snippets
$env = \Jsefton\DotEnv\Parser::envToArray('/path/to/.env');
\Jsefton\DotEnv\Parser::arrayToEnv($array, '/path/to/.env');
bash
composer