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.12(3d ago)011.2k↑22.2%[1 PRs](https://github.com/AnourValar/config-helper/pulls)1MITPHPPHP ^8.0CI failing

Since Feb 12Pushed 3d 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 2d ago

READMEChangelog (10)Dependencies (21)Versions (44)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

56

—

FairBetter than 97% of packages

Maintenance99

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity75

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

Recently: every ~18 days

Total

41

Last Release

3d 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 (44 commits)")

---

Tags

laravelconfiganourvalar

###  Code Quality

TestsPHPUnit

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

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11223.5M33](/packages/anourvalar-eloquent-serialize)[firefly-iii/data-importer

Firefly III Data Import Tool.

8045.8k](/packages/firefly-iii-data-importer)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[ronasit/laravel-helpers

Provided helpers function and some helper class.

2085.6k31](/packages/ronasit-laravel-helpers)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)

PHPackages © 2026

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