PHP code example of djunehor / php-env-export

1. Go to this page and download the library: Download djunehor/php-env-export 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/ */

    

djunehor / php-env-export example snippets


'providers' => [
    // ...
    Djunehor\Env\EnvExportServiceProvider::class,
];

// Register Service Providers
    // ...
    $app->register(Djunehor\Env\EnvExportServiceProvider::class);
];

$from = '.env'; //default value is .env
$to = '.env.example'; // default value is .env.example
export_env($from, $to);
shell
composer