alonity/config

Alonity logger

Installs: 29

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/alonity/config

dev-main 2021-07-21 09:32 UTC

This package is auto-updated.

Last update: 2025-09-27 21:56:58 UTC


README

Configuration component

Install

composer require alonity/config

Examples

use alonity\config\Config;

require('vendor/autoload.php');

$mainConfig = Config::get('main'); // ./vendor/../main.php

$value = Config::getValue('main', 'example'); // Like $mainConfig['example']

$load = Config::loader([
    'main',
    'Other' => '../../../../configs/other'
]);
// Now you can call to config via $load['Other'] or Config::get('Other')

Documentation: https://alonity.gitbook.io/alonity/components/config