1. Go to this page and download the library: Download orbiter/satellite-config 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/ */
orbiter / satellite-config example snippets
$aggregator = new \Satellite\Config\ConfigAggregator($is_prod ? __DIR__ . '/tmp/config_aggregated.php' : null);
$aggregator->append(
ConfigProvider::class,
ConfigInvokableProvider::class,
// pass down functions which return an array (when using cache: only executed on warm-up)
static fn() => [
'some_array' => [
'a' => [],
],
],
// pass down arrays:
[
'some_array' => [
'b' => [],
// functions can also be used nested (when using cache: only executed on warm-up)
'c' => static fn() => [],
]
],
);
// just aggregate:
$config = $aggregator->make();
// aggregate and use cache (if configured):
$config = $aggregator->configure();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.