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

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

fyre/config
===========

A configuration library.

v5.0.3(8mo ago)0357↓84.6%17MITPHP

Since Apr 2Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/elusivecodes/FyreConfig)[ Packagist](https://packagist.org/packages/fyre/config)[ RSS](/packages/fyre-config/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (6)Versions (25)Used By (17)

FyreConfig
==========

[](#fyreconfig)

**FyreConfig** is a free, open-source configuration library for *PHP*.

Table Of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Methods](#methods)

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

[](#installation)

**Using Composer**

```
composer require fyre/config

```

In PHP:

```
use Fyre\Config\Config;
```

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

[](#basic-usage)

```
$config = new Config();
```

**Autoloading**

It is recommended to bind the *Config* to the [*Container*](https://github.com/elusivecodes/FyreContainer) as a singleton.

```
$container->singleton(Config::class);
```

Methods
-------

[](#methods)

**Add Path**

Add a config path.

- `$path` is the path to add.
- `$prepend` is a boolean indicating whether to prepend the file path, and will default to *false*.

```
$config->addPath($path, $prepend);
```

**Clear**

Clear config data.

```
$config->clear();
```

**Consume**

Retrieve and delete a value from the config using "dot" notation.

- `$key` is the key to lookup.
- `$default` is the default value to return, and will default to *null*.

```
$value = $config->consume($key, $default);
```

**Delete**

Delete a value from the config using "dot" notation.

- `$key` is the key to remove.

```
$config->delete($key);
```

**Get**

Retrieve a value from the config using "dot" notation.

- `$key` is the key to lookup.
- `$default` is the default value to return, and will default to *null*.

```
$value = $config->get($key, $default);
```

**Get Paths**

Get the paths.

```
$paths = $config->getPaths();
```

**Has**

Determine if a value exists in the config.

- `$key` is the key to check for.

```
$has = $config->has($key);
```

**Load**

Load a file into the config.

- `$file` is a string representing the config file.

```
$config->load($file);
```

**Remove Path**

Remove a path.

- `$path` is the path to remove.

```
$config->removePath($path);
```

**Set**

Set a config value using "dot" notation.

- `$key` is the key.
- `$value` is the value to set.
- `$overwrite` is a boolean indicating whether previous values will be overwritten, and will default to *true*.

```
$config->set($key, $value, $overwrite);
```

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance62

Regular maintenance activity

Popularity12

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~56 days

Recently: every ~17 days

Total

24

Last Release

241d ago

Major Versions

v1.0.3 → v2.02023-07-15

v2.0.1 → v3.02023-07-23

v3.0.6 → v4.02024-10-29

v4.1.4 → v5.02025-10-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/fad81fd5941e3a637c8a5749d05ae3ed9314d5e2fee57f59c3d9ec3b41259c6b?d=identicon)[elusivecodes](/maintainers/elusivecodes)

---

Top Contributors

[![elusivecodes](https://avatars.githubusercontent.com/u/18050480?v=4)](https://github.com/elusivecodes "elusivecodes (20 commits)")

---

Tags

configurationphp

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/fyre-config/health.svg)

```
[![Health](https://phpackages.com/badges/fyre-config/health.svg)](https://phpackages.com/packages/fyre-config)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
