PHPackages                             talesoft/tale-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. talesoft/tale-config

ActiveLibrary

talesoft/tale-config
====================

Lightweight configuration interfaces and utilities

0.2(10y ago)242.0k↑23.5%16MITPHPPHP &gt;=5.5.0

Since Feb 29Pushed 10y ago3 watchersCompare

[ Source](https://github.com/Talesoft/tale-config)[ Packagist](https://packagist.org/packages/talesoft/tale-config)[ Docs](http://docs.talesoft.io/tale-framework/tale/config)[ RSS](/packages/talesoft-tale-config/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (6)

Tale Config
===========

[](#tale-config)

**A Tale Framework Component**

What is Tale Config?
====================

[](#what-is-tale-config)

A small configuration utility library. It supports different adapters and a few utilities to handle option arrays and configurable objects

Installation
============

[](#installation)

Install via Composer

```
composer require "talesoft/tale-config:*"
composer install
```

Usage
=====

[](#usage)

The ConfigurableTrait
---------------------

[](#the-configurabletrait)

```
use Tale\ConfigurableInterface;
use Tale\ConfigurableTrait;

class DbConnection implements ConfigurableInterface
{
    use ConfigurableTrait;

    public function __construct(array $options = null)
    {

        $this->defineOptions([
            'host' => 'localhost',
            'user' => 'root',
            'password' => '',
            'encoding' => 'utf-8',
            'databases' => [
                'db1' => 'database_1',
                'db2' => 'database_2'
            }
        ], $options);

        var_dump($this->getOptions()); //The current options

        var_dump($this->getOption('databases'); //['db1' => 'database_1', 'db2' => 'database_2']

        var_dump($this->getOption('databases.db1'); //database_1
        var_dump($this->getOption('databases.db2'); //database_2
    }
}
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

3730d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/75a80e0830e63c723808d021d3a1648a2643db60f4ac2e40842da05f227f956b?d=identicon)[TorbenKoehn](/maintainers/TorbenKoehn)

---

Top Contributors

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

---

Tags

configoptions

### Embed Badge

![Health badge](/badges/talesoft-tale-config/health.svg)

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

###  Alternatives

[symfony/options-resolver

Provides an improved replacement for the array\_replace PHP function

3.2k493.9M1.6k](/packages/symfony-options-resolver)[nette/schema

📐 Nette Schema: validating data structures against a given Schema.

1.0k336.4M125](/packages/nette-schema)[league/config

Define configuration arrays with strict schemas and access values with dot notation

564302.2M24](/packages/league-config)[sandrokeil/interop-config

Provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and ensures a valid config structure. It can also be used to auto discover factories and to create configuration files.

58446.7k34](/packages/sandrokeil-interop-config)[sandrokeil/easy-config

Zend Framework 2 (zf2) module to retrieve specific module options and provides some abstract factories to create easily instances depending on configuration

113.1k1](/packages/sandrokeil-easy-config)

PHPackages © 2026

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