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

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

jinnguyen/puja-config
=====================

Allow load multi configured files, access the configured value as an object

v1.0.0(9y ago)047Apache License 2.0PHP

Since Nov 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jinnguyen/puja-config)[ Packagist](https://packagist.org/packages/jinnguyen/puja-config)[ RSS](/packages/jinnguyen-puja-config/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

puja-config v1.0.0
==================

[](#puja-config-v100)

Allow load multi configured files, access the configured value as an object

**Install:**

```
composer require jinnguyen/puja-config
```

**Usage:**

```
require 'path/to/vendor/autoload.php';
```

**Example:**

**Folder tree:**

```
root/
root/app/configure.php
root/app/configure_local.php
root/config/configure.php
root/config/configure_local.php
```

**File root/config/configure.php**

```
$configures['database'] = array(
    'host' => 'localhost',
);
$configures['app_name'] = 'Puja/Config';
```

**File root/config/configure\_local.php**

```
$configures['database'] = array(
    'host' => 'remote_host',
);
```

**File root/app/configure.php**

```
$configures['session'] = array(
    'savePath' => '/tmp',
);
```

**File root/app/configure\_local.php**

```
$configures['session'] = array(
    'savePath' => '/home/tmp',
);
```

**File root/demo.php:**

```
include 'path/to/vendor/autoload.php';
use Puja\Configure\Configure;
new Configure(array('config/', 'app/'));

$databaseCfg = Configure::getInstance('database');
echo $databaseCfg->get('host'); // remote_host

$sessionCfg = Configure::getInstance('session');
echo $sessionCfg->get('savePath'); // /home/tmp

$allCfg = Configure::getInstance();
echo $allCfg->get('app_name'); // Puja/Config
```

**Note**

**new Configure(array('**config**/', '**app**/'));** is same with

```
require config/configure.php
require config/configure_local.php
require app/configure.php
require app/configure_local.php

```

So the values from configure\_local.php will overwrite configure.php in same folder, the last folder will overwrite the previous folder.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

3525d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25e5bd31b5dd70d47cbdc738bded06dbabfba3d584acce63c2c4b4fb7847f39d?d=identicon)[jinnguyen](/maintainers/jinnguyen)

---

Top Contributors

[![linhnmt](https://avatars.githubusercontent.com/u/10231628?v=4)](https://github.com/linhnmt "linhnmt (1 commits)")[![linhnnmt](https://avatars.githubusercontent.com/u/162856460?v=4)](https://github.com/linhnnmt "linhnnmt (1 commits)")

---

Tags

configurationconfigconfigurepuja

### Embed Badge

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

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

###  Alternatives

[symfony/options-resolver

Provides an improved replacement for the array\_replace PHP function

3.2k514.6M1.9k](/packages/symfony-options-resolver)[league/config

Define configuration arrays with strict schemas and access values with dot notation

565323.7M35](/packages/league-config)[dflydev/dot-access-configuration

Given a deep data structure representing a configuration, access configuration by dot notation.

13414.5M4](/packages/dflydev-dot-access-configuration)[dmishh/settings-bundle

Database centric Symfony configuration management. Global and per-user settings supported.

114256.9k1](/packages/dmishh-settings-bundle)[jbtronics/settings-bundle

A symfony bundle to easily create typesafe, user-configurable settings for symfony applications

9558.8k3](/packages/jbtronics-settings-bundle)[caseyamcl/configula

A simple, but versatile, PHP config loader

42148.7k6](/packages/caseyamcl-configula)

PHPackages © 2026

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