PHP code example of klc / env-switch
1. Go to this page and download the library: Download klc/env-switch 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/ */
klc / env-switch example snippets
dump(env("HELLO"));
envSwitch('bar.env');
dump(env("HELLO"));
envSwitch('.env');
dd(env("HELLO"));