PHPackages                             emargareten/config-php - 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. emargareten/config-php

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

emargareten/config-php
======================

Simple config manager for PHP

v0.0.1(3y ago)27MITPHPPHP ^8.0

Since Apr 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/emargareten/config-php)[ Packagist](https://packagist.org/packages/emargareten/config-php)[ Docs](https://github.com/emargareten/config-php)[ RSS](/packages/emargareten-config-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Simple Config for PHP applications
==================================

[](#simple-config-for-php-applications)

[![Latest Version on Packagist](https://camo.githubusercontent.com/16463fa6d103fc51da4a071460ec6d3cccd8128a0b416589a8e65309dfb9e6ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656d61726761726574656e2f636f6e6669672d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/emargareten/config-php)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Tests](https://github.com/emargareten/config-php/workflows/Tests/badge.svg)](https://github.com/emargareten/config-php/workflows/Tests/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/0a6179576b8eb526e197a66beff10662e10b536191f6c3955836879a8121bdce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656d61726761726574656e2f636f6e6669672d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/emargareten/config-php)

This package makes it easy to manage configuration settings in your application. It provides a simple and convenient way to set, get, and manipulate configuration values.

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

[](#requirements)

This package requires PHP 8.0 or later.

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

[](#installation)

You can install the package via composer:

```
composer require emargareten/config-php
```

Usage
-----

[](#usage)

### Setting the Configuration File Path

[](#setting-the-configuration-file-path)

Before you can use the package, you must create a configuration file and set the path to it. The configuration file should return an array of configuration values:

```
