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

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

jjok/config
===========

A simple configuration class.

2.0.1(12y ago)05.7k1MITPHPPHP &gt;=5.3.0

Since Sep 25Pushed 12y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (1)

Config
======

[](#config)

[![Build Status](https://camo.githubusercontent.com/ab5336c2632e08de3e75361d3196745f39834b52fa17d2aa5a8eca0ffaf1ecda/68747470733a2f2f7472617669732d63692e6f72672f6a6a6f6b2f436f6e6669672e706e67)](https://travis-ci.org/jjok/Config)

A simple configuration class.

Examples
--------

[](#examples)

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

# Set a value
$config->set('some_setting', 'Some Value');

try {
	# Get a value that has been set
	echo $config->get('some_setting');

	# Trying to get a value that hasn't been set throws an exception
	echo $config->get('fdg');
}
catch(\Exception $e) {
	echo $e->getMessage();
}

```

Get configuration instance in one line:

```
return new \jjok\Config\Config(array(
	'some_setting' => 'Some Value',
	'some_other_setting' => 'Some Other Value'
));

```

Run tests
---------

[](#run-tests)

```
phpunit

```

Copyright (c) 2013 Jonathan Jefferies

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4660d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/777648?v=4)[Jonathan Jefferies](/maintainers/jjok)[@jjok](https://github.com/jjok)

---

Top Contributors

[![jjok](https://avatars.githubusercontent.com/u/777648?v=4)](https://github.com/jjok "jjok (21 commits)")

### Embed Badge

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

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

PHPackages © 2026

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