PHPackages                             shen2/hilo - 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. shen2/hilo

ActiveLibrary

shen2/hilo
==========

Hierarchy Loader

3250PHP

Since Mar 29Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Hilo
====

[](#hilo)

Hierarchical Loader.

Installation
------------

[](#installation)

```
composer require shen2/hilo

```

Usage
-----

[](#usage)

```
class PromotionAdapter extends \Hilo\CustomAdapter {
	use \Hilo\JsonSerializer;

	protected $_cacheNamespace = 'promotion';
	protected $_ttl = 3600;

	public function fetch($key) {
		$ads = \Ad::select()
			->where('find_in_set(?, positions)', $key)
			->order('ad_id desc')
			->fetchAll();

		return $ads;
	}
}

$redisConfig = [...];
$redisManager = new RedisManager($redisConfig);

$adapter = new PromotionAdapter($redisManager);

$container = new Hilo\Container($adapter);

$container->get('key');
$container->getMulti(['key1', 'key2']);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2515a1b7a6e85454fd15245886d030202007d1329757aa4bf0d0123f49789279?d=identicon)[shen2](/maintainers/shen2)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/shen2-hilo/health.svg)

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

PHPackages © 2026

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