touta / eolas-config
Configuration loading, merging, and typed access for the Touta PHP ecosystem
v0.1.0
2026-03-21 03:40 UTC
Requires
- php: ^8.3
- touta/aria-runtime-php: ^0.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- pestphp/pest: ^3.0
- phpstan/phpstan: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
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