PHPackages                             usox/hacore - 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. usox/hacore

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

usox/hacore
===========

Read json configs in strict mode

v1.3.0(7y ago)2846MITShell

Since Mar 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/usox/hacore)[ Packagist](https://packagist.org/packages/usox/hacore)[ Docs](https://github.com/usox/hacore)[ RSS](/packages/usox-hacore/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (5)Versions (7)Used By (0)

[![Build Status](https://camo.githubusercontent.com/a01d8d6957acd83e210dac9c88de85f6b97706447face8495b2e3c122fd692e1/68747470733a2f2f7472617669732d63692e6f72672f75736f782f6861636f72652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/usox/hacore)

Hacore - Hack Config Reader
===========================

[](#hacore---hack-config-reader)

Hacore provides a simple approach to read json formatted config files in hack strict mode.

Sample config
-------------

[](#sample-config)

Hacore treats all config values as strings and will explicitly cast them. To access the values of a single key, just use `getLeaf($key_name)`. To get a complete branch of options, use `getBranch($key_name)`.

```
{
	"foo":"bar",
	"barfoo":666,
	"more":{
		"config":"options"
	}
}
```

```
$reader = new \Usox\Hacore\Reader();
$reader->load('path-to-config.json')

$reader->getLeaf('foo'); // returns 'bar'
$reader->getLeaf('barfoo'); // returns '666'
$reader->getBranch('more'); // returns a new Reader instance
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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

Total

5

Last Release

2646d ago

### Community

Maintainers

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

---

Top Contributors

[![usox](https://avatars.githubusercontent.com/u/5184763?v=4)](https://github.com/usox "usox (12 commits)")

---

Tags

confighacklanghhvmjsonjsonconfighhvmhackhacklang

### Embed Badge

![Health badge](/badges/usox-hacore/health.svg)

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

###  Alternatives

[hassankhan/config

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

97513.5M170](/packages/hassankhan-config)[laktak/hjson

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

86233.7k12](/packages/laktak-hjson)[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)[thewunder/conphigure

Framework Agnostic Configuration Library

3115.9k](/packages/thewunder-conphigure)

PHPackages © 2026

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