PHPackages                             g4/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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. g4/config

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

g4/config
=========

g4 application config manager

2.2.0(7mo ago)071.6k↓33.3%21MITPHPPHP &gt;=8.3

Since Apr 24Pushed 7mo ago7 watchersCompare

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

READMEChangelog (6)Dependencies (2)Versions (16)Used By (1)

Config
======

[](#config)

> Config - configuration parser - somewhere between ZF1 and ZF2, sections with include ...

Install
-------

[](#install)

> Using Composer and Packagist

```
composer require g4/config
```

Usage
-----

[](#usage)

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

$data = $config
    ->setCachePath(__DIR__)
    ->setSection('local')
    ->setPath('config.ini')
    ->getData();
```

Development
-----------

[](#development)

### Install dependencies

[](#install-dependencies)

```
$ make install

```

### Run tests

[](#run-tests)

```
$ make test

```

License
-------

[](#license)

(The MIT License) see LICENSE file for details...

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance62

Regular maintenance activity

Popularity29

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor3

3 contributors hold 50%+ of commits

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

Recently: every ~182 days

Total

14

Last Release

236d ago

Major Versions

0.4.0 → 1.0.02023-10-10

1.0.0 → 2.0.02023-10-27

PHP version history (4 changes)0.1.0PHP &gt;=5.3.3

2.0.0PHP &gt;=7.3

2.1.0PHP &gt;=8.1

2.2.0PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/12ceafbc629c3019d7cd78dfec322d694f44e0df8741bc6044f4acbf99964ff8?d=identicon)[g4code](/maintainers/g4code)

---

Top Contributors

[![dsamardzija](https://avatars.githubusercontent.com/u/366252?v=4)](https://github.com/dsamardzija "dsamardzija (11 commits)")[![ppavlovic](https://avatars.githubusercontent.com/u/2664974?v=4)](https://github.com/ppavlovic "ppavlovic (9 commits)")[![UrosPurtic](https://avatars.githubusercontent.com/u/52161020?v=4)](https://github.com/UrosPurtic "UrosPurtic (7 commits)")[![ivankoni](https://avatars.githubusercontent.com/u/570997?v=4)](https://github.com/ivankoni "ivankoni (6 commits)")[![gomboc](https://avatars.githubusercontent.com/u/1145653?v=4)](https://github.com/gomboc "gomboc (6 commits)")[![mirko-bukilic](https://avatars.githubusercontent.com/u/76707321?v=4)](https://github.com/mirko-bukilic "mirko-bukilic (2 commits)")[![zeljkosbgd](https://avatars.githubusercontent.com/u/4016203?v=4)](https://github.com/zeljkosbgd "zeljkosbgd (2 commits)")[![rdohms](https://avatars.githubusercontent.com/u/94331?v=4)](https://github.com/rdohms "rdohms (1 commits)")

---

Tags

jsonconfigini

### Embed Badge

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

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

###  Alternatives

[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[m1/vars

Vars is a simple to use and easily extendable configuration loader with in built loaders for ini, json, PHP, toml, XML and yaml/yml file types. It also comes with in built support for Silex and more frameworks to come soon.

69124.2k1](/packages/m1-vars)[laktak/hjson

JSON for Humans. A configuration file format with relaxed syntax, fewer mistakes and more comments.

86233.7k12](/packages/laktak-hjson)[thewunder/conphigure

Framework Agnostic Configuration Library

3115.9k](/packages/thewunder-conphigure)[phppkg/config

Config manage, load, get. Supports INI,JSON,YAML,NEON,PHP format file

133.5k](/packages/phppkg-config)

PHPackages © 2026

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