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

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

steroid/config
==============

Steroid Config

v1.1.1(10y ago)020MITPHP

Since May 22Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ZacharieBaptiste/SteroidConfig)[ Packagist](https://packagist.org/packages/steroid/config)[ RSS](/packages/steroid-config/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

Steroid Config
--------------

[](#steroid-config)

[![Build Status](https://camo.githubusercontent.com/0aa9b5115a9ca62b5984d900b0dcf0d00ab3076ddc898452e548c2f0bbd91b8e/68747470733a2f2f7472617669732d63692e6f72672f5a6163686172696542617074697374652f537465726f6964436f6e6669672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ZacharieBaptiste/SteroidConfig)[![Coverage Status](https://camo.githubusercontent.com/0253fcadb213457505120fe01dbfd505b073d8421689378ab12c2d4ef82d59ea/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f5a6163686172696542617074697374652f537465726f6964436f6e6669672f62616467652e737667)](https://coveralls.io/r/ZacharieBaptiste/SteroidConfig)[![SensioLabsInsight](https://camo.githubusercontent.com/dd1ee2c4386382ed8b488aae5a82509fbe5c246f9486f86c11f64523219f2857/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32356561623864652d386132622d346431312d626231352d3830353763353937306134612f6d696e692e706e67)](https://insight.sensiolabs.com/projects/25eab8de-8a2b-4d11-bb15-8057c5970a4a)[![Latest Stable Version](https://camo.githubusercontent.com/825b39ad5fea9fb0c8c931e89c46ac7a743c51d3eb26e9831957b7d461939df3/68747470733a2f2f706f7365722e707567782e6f72672f737465726f69642f636f6e6669672f762f737461626c652e737667)](https://packagist.org/packages/steroid/config)[![Monthly Downloads](https://camo.githubusercontent.com/4e06b0c49b55bd94ffc99253abf735d446777da7cbed8abfde917913dd96f2c8/68747470733a2f2f706f7365722e707567782e6f72672f737465726f69642f636f6e6669672f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/steroid/config)

#### Installation:

[](#installation)

"steroid/config": "~1.0"

#### Usage:

[](#usage)

```
Config::setCacheDirectory($cache_directory);
$config = Config::instance()->load('config.txt');
$locale = $config->get('dev.locale');
$locale = Config::instance()->get('dev.locale');
```

Setting a root, usual if you defined roots in your config to separate dev and production or any other separation, all calls to the config will be prefixed with root. Root can be set in bootstrap when config is initialized.

```
$config = Config::instance()->setRoot('dev');
$locale = $config->get('locale');
$locale = Config::instance()->get('locale');
```

#### Config file syntax:

[](#config-file-syntax)

Documentation is still far from defined, all supported config's are listed and explained shortly in tests/files

#### Changelog:

[](#changelog)

v1.1.1 - Refactored parser

v1.1.0 - Added support for config roots - Added multiline support with filter support - More complete tests and config files with all supported syntaxes

v1.0.1 - The instance multione also creates an instance if not already created

v1.0.0 - Initial version

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~1 days

Total

4

Last Release

4008d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b29fd710edc5d5f094180eba319cf42d9aeefdd3f3bb6a12b008c9879fab34d?d=identicon)[Zacharie](/maintainers/Zacharie)

---

Top Contributors

[![ZacharieBaptiste](https://avatars.githubusercontent.com/u/12557107?v=4)](https://github.com/ZacharieBaptiste "ZacharieBaptiste (29 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

PHPackages © 2026

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