1. Go to this page and download the library: Download msztorc/laravel-env 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/ */
msztorc / laravel-env example snippets
use msztorc\LaravelEnv\Env;
$env = new Env();
$val = $env->getValue('APP_NAME');
echo $val; // Laravel
use msztorc\LaravelEnv\Env;
$env = new Env();
$val = $env->setValue('APP_NAME', 'Laravel App');
echo $val; // Laravel App
use msztorc\LaravelEnv\Env;
$env = new Env();
$env->deleteVariable('PUSHER_APP_ID');
use msztorc\LaravelEnv\Env;
$env = new Env();
$env->renameVariable('APP_NAME', 'APPLICATION_NAME');