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

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

anourvalar/config-helper
========================

Helper functions over Laravel config

3.3.7(1mo ago)010.6k↓16.7%1MITPHPPHP ^8.0CI failing

Since Feb 12Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/AnourValar/config-helper)[ Packagist](https://packagist.org/packages/anourvalar/config-helper)[ Docs](https://github.com/AnourValar/config-helper)[ RSS](/packages/anourvalar-config-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (37)Used By (1)

Laravel Config Helpers
======================

[](#laravel-config-helpers)

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

[](#installation)

```
composer require anourvalar/config-helper
```

Usage
-----

[](#usage)

### Config example

[](#config-example)

```
// config/example.php

return [
    'user_role' => [
        'admin' => ['title' => 'Administrator', 'super_user' => true],
        'maintainer' => ['title' => 'Maintainer', 'super_user' => true],
        'moderator' => ['title' => 'Moderator'],
        'user' => ['title' => 'User', 'register_via_form' => true],
    ],
];
```

### Get filtered keys of config

[](#get-filtered-keys-of-config)

```
\ConfigHelper::keys('example.user_role', ['super_user' => true]); // ['admin', 'maintainer']
```

### Get singleton key

[](#get-singleton-key)

```
\ConfigHelper::key('example.user_role', ['register_via_form' => true]); // 'user'
```

### HTML select

[](#html-select)

```
echo '' . \ConfigHelper::toSelect('example.user_role') . '';
```

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance90

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity73

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

Recently: every ~97 days

Total

36

Last Release

52d ago

Major Versions

1.1.0 → 2.0.02020-04-07

2.3.2 → 3.0.02021-09-08

PHP version history (4 changes)1.0.0PHP &gt;=7.0.0

2.1.2PHP &gt;=7.1.0

3.2.0PHP &gt;=8.0

3.2.2PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelconfiganourvalar

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[akaunting/laravel-setting

Persistent settings package for Laravel

495805.1k7](/packages/akaunting-laravel-setting)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[bpocallaghan/generators

Custom Laravel File Generators with config and publishable stubs.

11965.8k3](/packages/bpocallaghan-generators)

PHPackages © 2026

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