touta/eolas-config

Configuration loading, merging, and typed access for the Touta PHP ecosystem

Maintainers

Package info

github.com/toutaio/eolas-config

pkg:composer/touta/eolas-config

Statistics

Installs: 1

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-03-21 03:40 UTC

This package is auto-updated.

Last update: 2026-04-21 03:51:55 UTC


README

Configuration loading, merging, and typed access for the Touta PHP ecosystem.

Install

composer require touta/eolas-config

Usage

use Touta\Eolas\ConfigRepository;
use Touta\Eolas\ArrayLoader;

$loader = new ArrayLoader(['app' => ['name' => 'MyApp', 'debug' => true]]);
$config = ConfigRepository::fromLoader($loader);

$name = $config->get('app.name');    // Success('MyApp')
$missing = $config->get('app.foo');  // Failure(...)

License

MIT