PHP code example of kimbee-team / dotenv-dump

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

    

kimbee-team / dotenv-dump example snippets


(new Dotenv())->load(__DIR__.'/../.env');

if (file_exists(__DIR__.'/../.env.php')) {
   $variables = 

 return array (
  'APP_ENV' => 'dev',
  'APP_SECRET' => '6d15395b9c94f12f97fa31edc9c0c6f0',
);


// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new \KimbeeTeam\DotenvDump\KimbeeTeamDotenvDumpBundle(),
        );

        // ...
    }

    // ...
}