1. Go to this page and download the library: Download krak/schema 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/ */
use Symfony\Component\Config\Definition\{ConfigurationInterface, TreeBuilder};
use function Krak\Schema\ProcessSchema\SymfonyConfig\configTree;
use function Krak\Schema\{struct, string};
final class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder() {
return configTree('aws', struct([
'version' => string(),
'region' => string(),
'credentials' => struct([
'key' => string(),
'secret' => string(),
])
]));
}
}