PHP code example of technodelight / symfony-configuration-cli-initialiser
1. Go to this page and download the library: Download technodelight/symfony-configuration-cli-initialiser 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/ */
technodelight / symfony-configuration-cli-initialiser example snippets
use Technodelight\SymfonyConfigurationInitialiser\Initialiser;
use Your\Own\SymfonyConfiguration as Configuration;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Component\Yaml\Yaml;
$input = new ArgvInput;
$output = new ConsoleOutput;
$init = new Initialiser;
$config = $init->init(new Configuration, $input, $output);
file_put_contents('./inited-config.yml', Yaml::dump($config)); // you can use any kind of dumper here