PHPackages                             vaibhavpandeyvpz/kunfig - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vaibhavpandeyvpz/kunfig

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vaibhavpandeyvpz/kunfig
=======================

Helper library to easily merge &amp; use multiple configuration files.

2.1.1(5mo ago)21491MITPHPPHP ^8.2CI passing

Since Jan 22Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/vaibhavpandeyvpz/kunfig)[ Packagist](https://packagist.org/packages/vaibhavpandeyvpz/kunfig)[ Docs](https://github.com/vaibhavpandeyvpz/kunfig)[ RSS](/packages/vaibhavpandeyvpz-kunfig/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (5)Used By (1)

Kunfig
======

[](#kunfig)

[![Tests](https://github.com/vaibhavpandeyvpz/kunfig/actions/workflows/tests.yml/badge.svg)](https://github.com/vaibhavpandeyvpz/kunfig/actions)[![Latest Version](https://camo.githubusercontent.com/3c621e32a3605d01d359ae8cd80969040a41a2a08b7ce403f1b8e830147ad578/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7661696268617670616e64657976707a2f6b756e6669672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vaibhavpandeyvpz/kunfig)[![Downloads](https://camo.githubusercontent.com/9794759fa5276f1574abba8c175c2d431f8e311af2129a9d41ee19e4daed8cc9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7661696268617670616e64657976707a2f6b756e6669672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vaibhavpandeyvpz/kunfig)[![PHP Version](https://camo.githubusercontent.com/0bda081dee7d48e22674b5709f596054122c5ba71cbed29bfddeab0bf69773fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7661696268617670616e64657976707a2f6b756e6669672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vaibhavpandeyvpz/kunfig)[![License](https://camo.githubusercontent.com/9203feb95f3c55a3385536588415c02152fe1ccf6bd105f5191ba239232dac97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7661696268617670616e64657976707a2f6b756e6669672e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Code Coverage](https://camo.githubusercontent.com/994d68acb2aadf1c3c7711ddcb3b30429246a6c05da9e601f62c3f932ac795a8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/vaibhavpandeyvpz/kunfig)

A modern, flexible PHP configuration management library that provides multiple access patterns (methods, arrays, properties, and dot notation) for managing configuration values with support for nested configurations, merging, and type safety.

Features
--------

[](#features)

- 🎯 **Multiple Access Patterns**: Access configuration values using methods, array syntax, or object properties
- 🔄 **Nested Configurations**: Automatic conversion of arrays to nested `Config` instances
- 🔀 **Configuration Merging**: Recursively merge multiple configurations with `mix()`
- 📝 **Dot Notation**: Access nested values using dot syntax (e.g., `$config->get('app.debug')`)
- 🔒 **Type Safety**: Full PHP 8.2+ type declarations with strict types
- 📊 **Iterable &amp; Countable**: Implements `IteratorAggregate` and `Countable` interfaces
- 🎨 **Modern PHP**: Built with PHP 8.2+ features including traits, union types, and more
- ✅ **100% Test Coverage**: Comprehensive test suite with full code coverage

Requirements
------------

[](#requirements)

- PHP 8.2 or higher

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

[](#installation)

Install via Composer:

```
composer require vaibhavpandeyvpz/kunfig
```

Quick Start
-----------

[](#quick-start)

```
