PHPackages                             hurtcode/configure - 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. hurtcode/configure

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

hurtcode/configure
==================

Library for creating configurations

1.0.1(4y ago)0171MITPHPPHP 8.\*

Since Jun 17Pushed 4y agoCompare

[ Source](https://github.com/hurtcode/config)[ Packagist](https://packagist.org/packages/hurtcode/configure)[ RSS](/packages/hurtcode-configure/feed)WikiDiscussions master Synced 1w ago

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

Config
======

[](#config)

---

This is a library designed to create configurations for various systems. It provides a basic interface and a unit of work for this. The configuration is an array of static, predefined parameters

**Begin work**

```
// first: create configurator unit of work
$configurator = new Configurator(
    ConfigInterface::class, // your config realization
    CompilerInterface::class, // your compiler realization
    CacheItemPoolInterface::class // your cache realization
);

$configs = $configurator->run(); // start configuration building
```

---

### Configurator

[](#configurator)

This is unit, that do all job to create configurations. It depends on two interfaces: `ConfigInterface` and `CompilerInterface`. Configurator compiles configs only once time and after takes it from cache.

### ConfigInterface

[](#configinterface)

This interface is responsible for locating the configuration directory, and the input configuration file. Its main purpose to show where and what *compiler* need to get

### CompilerInterface

[](#compilerinterface)

This interface is responsible for compiling configuration. It takes main config file string content and parses in array of keys and value. This order of things allows you to use any format as configuration files (json,yaml,xml etc.).

---

**Suggest work flow**

- ConfigInterface gives file content string
- CompilerInterface parses it using specific rules
- Configurator rules them all and caches result.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Every ~5 days

Total

2

Last Release

1791d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/57592875?v=4)[Kirill K](/maintainers/mislant)[@mislant](https://github.com/mislant)

---

Top Contributors

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

---

Tags

helperflashes

### Embed Badge

![Health badge](/badges/hurtcode-configure/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[bryanjhv/slim-session

Session middleware and helper for Slim framework 4.

233961.5k16](/packages/bryanjhv-slim-session)[laravelista/ekko

Framework agnostic PHP package for marking navigation items active.

278673.4k4](/packages/laravelista-ekko)[beste/json

A simple JSON helper to decode and encode JSON

4222.7M3](/packages/beste-json)[chillerlan/php-settings-container

A container class for immutable settings objects. Not a DI container.

3427.3M21](/packages/chillerlan-php-settings-container)[kartik-v/yii2-helpers

A collection of useful helper functions for Yii Framework 2.0

883.0M29](/packages/kartik-v-yii2-helpers)

PHPackages © 2026

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