PHP code example of andrey-helldar / env-sync
1. Go to this page and download the library: Download andrey-helldar/env-sync 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/ */
andrey-helldar / env-sync example snippets
use DragonCode\EnvSync\Services\Syncer;
protected function syncer(): Syncer
{
return Syncer::make();
}
protected function sync()
{
$this->syncer()
->path(__DIR__)
->filename('.env.example')
->store();
}
use DragonCode\EnvSync\Services\Syncer;
protected function syncer(): Syncer
{
return Syncer::make($this->config());
}
protected function config(): array
{
return