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

ActiveLibrary

azi/config
==========

Easy Configuration Management Library

0.2(10y ago)5231MITPHP

Since Nov 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/azeemhassni/Config)[ Packagist](https://packagist.org/packages/azi/config)[ RSS](/packages/azi-config/feed)WikiDiscussions master Synced 2mo ago

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

Config
======

[](#config)

[![Build Status](https://camo.githubusercontent.com/a6e011f266247768f06806000afc173380e210ff10bd218de3ba3c2a4523d523/68747470733a2f2f7472617669732d63692e6f72672f617a65656d686173736e692f436f6e6669672e737667)](https://travis-ci.org/azeemhassni/Config) [![Latest Stable Version](https://camo.githubusercontent.com/b7f9a1e63d01e969944c432933738482fa2b6bb9b6b8b827d888fff20380c10d/68747470733a2f2f706f7365722e707567782e6f72672f617a692f636f6e6669672f762f737461626c65)](https://packagist.org/packages/azi/config) [![Total Downloads](https://camo.githubusercontent.com/17e3b6cbd01ea5c3e35ebcd07f551279144649e51c10f69a9d773bce451e0293/68747470733a2f2f706f7365722e707567782e6f72672f617a692f636f6e6669672f646f776e6c6f616473)](https://packagist.org/packages/azi/config) [![Latest Unstable Version](https://camo.githubusercontent.com/667a3598afcf6c447da332056236c0433674218b1e0100c0aa690fd8781e2313/68747470733a2f2f706f7365722e707567782e6f72672f617a692f636f6e6669672f762f756e737461626c65)](https://packagist.org/packages/azi/config) [![License](https://camo.githubusercontent.com/5114ba839f11d46aace48b3ffd567a2946f1aafa5a8675e758ea6863919582c3/68747470733a2f2f706f7365722e707567782e6f72672f617a692f636f6e6669672f6c6963656e7365)](https://packagist.org/packages/azi/config)

---

Easy Configuration Management Library

If you are writing a WordPress theme or a PHP application, most likely you will have some configuration values. The conventional approach involves creating a file with a bunch of variables and constants, then including every file in your script, which may not be the most intuitive way. Inspired by Laravel's elegant configuration handling, I developed Config to provide a similar experience for PHP projects, especially in the context of WordPress themes.

---

Installation
============

[](#installation)

to install config in your project you just need to run this command

```
$ composer require azi/config
```

Up &amp; Running
================

[](#up--running)

after installing config you will need to create a directory named `config` in root of your project where your `composer.json` lives in this directory you can store your configuration files. i.e `database.php` or `site.php`lets say you want to store your database configuration values here. you will have to follow the following steps.

- create a file called `database.php`
- return your configuration values form that file like

```
  return [
     'mysql' => [
       'host' => '127.0.0.1',
       'username' => 'root',
       'password' => 'secrete'
     ]
   ];
```

- access the values from anywhere in your application like

```
   // will return 127.0.0.1
$host = Azi\Config::get('database.mysql.host');

// OR
$db = Azi\Config::get('database.mysql');
$host = $db->get('host');
$username = $db->get('username');
$password = $db->get('password');
```

with this package you will also get a little helper function to access values you can also write the above code like this

```
  // will return 127.0.0.1
  $host = config('database.mysql.host');
```

Contributers
============

[](#contributers)

- [@azeemhassni](https://github.com/azeemhassni)
- [@Golpha](https://github.com/Golpha)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% 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 ~2 days

Total

2

Last Release

3819d ago

### Community

Maintainers

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

---

Top Contributors

[![azeemhassni](https://avatars.githubusercontent.com/u/6503258?v=4)](https://github.com/azeemhassni "azeemhassni (16 commits)")[![nhlm](https://avatars.githubusercontent.com/u/23406211?v=4)](https://github.com/nhlm "nhlm (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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