PHPackages                             shlinkio/shlink-config - 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. shlinkio/shlink-config

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

shlinkio/shlink-config
======================

Utils to load, parse and work with configuration on Shlink project

v4.1.0(4mo ago)195.0k↑218.2%16MITPHPPHP ^8.4CI passing

Since Mar 13Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/shlinkio/shlink-config)[ Packagist](https://packagist.org/packages/shlinkio/shlink-config)[ Docs](https://shlink.io)[ RSS](/packages/shlinkio-shlink-config/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (11)Versions (25)Used By (6)

Shlink config
=============

[](#shlink-config)

[![Build Status](https://camo.githubusercontent.com/da3a775c0ac5124bad16b4ca1d2c2246d587c59066acf6a0b7fca7340ac4617c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73686c696e6b696f2f73686c696e6b2d636f6e6669672f63692e796d6c3f6272616e63683d6d61696e266c6f676f3d676974687562267374796c653d666c61742d737175617265)](https://github.com/shlinkio/shlink-config/actions/workflows/ci.yml?query=workflow%3A%22Continuous+integration%22)[![Code Coverage](https://camo.githubusercontent.com/ebbf000722ae3ad1a2b0ae3b5308aa7b2d7137afc509306f393965c3bb514534/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f73686c696e6b696f2f73686c696e6b2d636f6e6669672f6d61696e3f7374796c653d666c61742d737175617265)](https://app.codecov.io/gh/shlinkio/shlink-config)[![Latest Stable Version](https://camo.githubusercontent.com/01d7b7ba1e5cb7c3a11ca3d02ea104d803810f28c6f1f82b7a1237864c0e4095/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f73686c696e6b696f2f73686c696e6b2d636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shlinkio/shlink-config)[![License](https://camo.githubusercontent.com/68bd798e622877a4804bbc746cc3899c6804624a454ba7479d9f01b5cdbdfd47/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73686c696e6b696f2f73686c696e6b2d636f6e6669672e7376673f7374796c653d666c61742d737175617265)](https://github.com/shlinkio/shlink-config/blob/main/LICENSE)[![Paypal donate](https://camo.githubusercontent.com/f7bd7ab1d7bea7a4ac78f5189c56ce2dbf8cc73608863e0dd9408e10ddca4673/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d70617970616c2d626c75652e7376673f7374796c653d666c61742d737175617265266c6f676f3d70617970616c26636f6c6f72413d616161616161)](https://slnk.to/donate)

Utils to load, parse and work with configuration on Shlink project.

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

[](#installation)

Install this tool using [composer](https://getcomposer.org/).

```
composer install shlinkio/shlink-config

```

> This library is also a mezzio module which provides its own `ConfigProvider`. Add it to your configuration to get everything automatically set up.

Included utils
--------------

[](#included-utils)

- `loadConfigFromGlob`: Function which expects a glob pattern and loads and merges all config files that match it.
- `EnvVarLoaderProvider`: A config provider which loads the entries of the loaded config into env vars and always returns empty. Designed to be the first config provider in the pipeline.
- `DottedAccessConfigAbstractFactory`: An abstract factory that lets any config param to be fetched as a service by using the `config.foo.bar` notation.

###  Health Score

59

—

FairBetter than 98% of packages

Maintenance84

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

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

Recently: every ~119 days

Total

24

Last Release

145d ago

Major Versions

v1.6.0 → v2.0.02022-08-06

v2.5.0 → v3.0.02024-02-17

v3.4.0 → v4.0.02025-01-25

PHP version history (7 changes)v1.0.0PHP ^7.4

v1.1.0PHP ^7.4 || ^8.0

v1.3.0PHP ^8.0

v2.0.0PHP ^8.1

v2.5.0PHP ^8.2

v4.0.0PHP ^8.3

v4.1.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/73480af83259e096d154a8c4333e550c186b28ccb7a0d11f537b9aa57ad35392?d=identicon)[acelaya](/maintainers/acelaya)

---

Top Contributors

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

---

Tags

hacktoberfest

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/shlinkio-shlink-config/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

5.1k5.2k](/packages/shlinkio-shlink)[magento/community-edition

Magento 2 (Open Source)

12.2k53.6k13](/packages/magento-community-edition)[laminas/laminas-session

Object-oriented interface to PHP sessions and storage

8524.2M131](/packages/laminas-laminas-session)[laminas/laminas-validator

Validation classes for a wide range of domains, and the ability to chain validators to create complex validation criteria

15848.2M222](/packages/laminas-laminas-validator)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[laminas/laminas-router

Flexible routing system for HTTP and console applications

3522.5M76](/packages/laminas-laminas-router)

PHPackages © 2026

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