PHPackages                             kariricode/configurator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. kariricode/configurator

ActiveLibrary[Framework](/categories/framework)

kariricode/configurator
=======================

A flexible and efficient configuration management component for the KaririCode Framework, providing robust configuration handling for PHP applications.

v1.0.0(1y ago)07MITPHPPHP ^8.3

Since Sep 28Pushed 1y agoCompare

[ Source](https://github.com/KaririCode-Framework/kariricode-configurator)[ Packagist](https://packagist.org/packages/kariricode/configurator)[ Docs](https://kariricode.org/)[ RSS](/packages/kariricode-configurator/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (9)Versions (3)Used By (0)

KaririCode Framework: Configuration Component
=============================================

[](#kariricode-framework-configuration-component)

[![en](https://camo.githubusercontent.com/9687410941adb91c2f673c9d50ef38544f3e9a38a6b9f9367cac918a8d3e2a41/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e672d656e2d7265642e737667)](README.md)[![pt-br](https://camo.githubusercontent.com/03443f2a7a42ea03f0747d7bb784c5e42ee3f2c09e27bab66436a5021cc05c0c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e672d70742d2d62722d677265656e2e737667)](README.pt-br.md)

[![Docker](https://camo.githubusercontent.com/85e3ff712bb08b8e5595b34ecddfd189a51b20f61988aa467a56c5da9a107dda/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f636b65722d3234393645443f7374796c653d666f722d7468652d6261646765266c6f676f3d646f636b6572266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/85e3ff712bb08b8e5595b34ecddfd189a51b20f61988aa467a56c5da9a107dda/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f636b65722d3234393645443f7374796c653d666f722d7468652d6261646765266c6f676f3d646f636b6572266c6f676f436f6c6f723d7768697465)[![Makefile](https://camo.githubusercontent.com/a04b8a060bf2e39eb19daa633fb06ec15cd6247035ce3c168127a37d7cadaad4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d616b6566696c652d3144314431443f7374796c653d666f722d7468652d6261646765266c6f676f3d676e75266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/a04b8a060bf2e39eb19daa633fb06ec15cd6247035ce3c168127a37d7cadaad4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d616b6566696c652d3144314431443f7374796c653d666f722d7468652d6261646765266c6f676f3d676e75266c6f676f436f6c6f723d7768697465)[![PHP](https://camo.githubusercontent.com/d282cc3193faee11ee32307d0c4c9d809e8fafa4b3a8c12c6afbf35d4f7ec617/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d3737374242343f7374796c653d666f722d7468652d6261646765266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/d282cc3193faee11ee32307d0c4c9d809e8fafa4b3a8c12c6afbf35d4f7ec617/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d3737374242343f7374796c653d666f722d7468652d6261646765266c6f676f3d706870266c6f676f436f6c6f723d7768697465)[![PHPUnit](https://camo.githubusercontent.com/1a56a0e0e8f226512ca8ebf712fae233ef290ab1acbe601f48ada7817583878b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f504850556e69742d3738453133303f7374796c653d666f722d7468652d6261646765266c6f676f3d706870756e6974266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/1a56a0e0e8f226512ca8ebf712fae233ef290ab1acbe601f48ada7817583878b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f504850556e69742d3738453133303f7374796c653d666f722d7468652d6261646765266c6f676f3d706870756e6974266c6f676f436f6c6f723d7768697465)

A flexible and powerful configuration management component for the KaririCode Framework, providing robust configuration handling capabilities for PHP applications.

Features
--------

[](#features)

- Support for multiple configuration file formats (PHP, JSON, YAML)
- Hierarchical configuration structure
- Easy access to configuration values
- Configuration validation
- Merge strategies for combining multiple configuration sources
- Extensible loader system for custom configuration sources
- Secure handling of sensitive configuration data

Installation
------------

[](#installation)

To install the KaririCode Configuration component, run the following command:

```
composer require kariricode/configuration
```

Basic Usage
-----------

[](#basic-usage)

### Step 1: Setting Up Configuration Files

[](#step-1-setting-up-configuration-files)

Create your configuration files in the supported formats (PHP, JSON, or YAML). For example:

```
// config/app.php
