Important
This repository is read-only.
Development happens in the Annabel monorepo: https://github.com/codemonster-ru/annabel
Issues and pull requests should be opened there.
Simple configuration loader and helper for PHP applications.
composer require codemonster-ru/configuse Codemonster\Config\Config;
Config::load(__DIR__ . '/config');use Codemonster\Config\Config;
// get values
$name = Config::get('app.name', 'Default');
$dbHost = Config::get('database.host');
// set values dynamically
Config::set('app.debug', true);
// get all configs
$all = Config::all();<?php
return [
'name' => 'Codemonster',
'debug' => false,
];composer test