codin / config
Basic config file load supports PHP ans Json files
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/codin/config
Requires
- php: >=7.3
Requires (Dev)
- friendsofphp/php-cs-fixer: @stable
- phpspec/phpspec: @stable
- phpstan/phpstan: @stable
This package is auto-updated.
Last update: 2025-09-28 21:36:43 UTC
README
Lightweight configuration file loader that supports PHP and JSON files
$ cat path/to/config/foos.php <?php return ['foo' => 'bar']; $ cat path/to/config/bars.json {"bar":"baz"}
$config = Codin\Config\Config::create('path/to/config'); $config->has('foos.foo'); // true $config->get('foos.foo'); // "bar" $config->has('bars'); // true $config->get('bars'); // ['bar' => 'baz']