PHP code example of imoisey / envbuilder
1. Go to this page and download the library: Download imoisey/envbuilder 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/ */
imoisey / envbuilder example snippets
use Imoisey\Envbuilder\EnvBuilder;
$envBuilder = new EnvBuilder();
$envBuilder->add('APP_PORT', '5001');
$envBuilder
->add('DB_NAME', 'dbname')
->add('DB_USER', 'dbuser')
->add('DB_PASS', 'dbpass');
$envBuilder->build('.env');