PHPackages                             tres-framework/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. tres-framework/config

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

tres-framework/config
=====================

Easily load your configuration files.

v0.1.1(10y ago)117MITPHPPHP &gt;=5.4.0

Since Jun 13Pushed 10y ago2 watchersCompare

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

READMEChangelogDependencies (1)Versions (3)Used By (0)

Tres config
===========

[](#tres-config)

This package allows you to easily load your configuration files.

Installing
----------

[](#installing)

It's recommended to install by using Composer:

Using the terminal:

```
composer require tres-framework/config

```

Examples
--------

[](#examples)

```
$config = new Config();

$config->addFromArray([
    'cookie.lifetime_in_hours' => 48,
    'database' => [
        'mysql.host' => '127.0.0.1',
        'mysql.user' => 'bob',
    ],
    'deeply.nested.array.with.zero' => 0,
    'deeply.nested.array.with.a.null' => null,
    'deeply.nested.array.with.a.false' => false,
]);

$config->addFromFile(__DIR__.'/config/database.php');

echo 'Cookie lifetime: '.$config->get('cookie.lifetime_in_hours');
```

You should check out the [unit tests](tests/ConfigTest.php) for more examples.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

3991d ago

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tres-framework-config/health.svg)

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

###  Alternatives

[nutsweb/laravel-prerender

Laravel middleware for prerendering javascript-rendered pages on the fly for SEO

279165.5k1](/packages/nutsweb-laravel-prerender)[fadion/fixerio

Wrapper for Fixer.io

49337.7k](/packages/fadion-fixerio)[fruitstudios/searchit

Configure powerful custom filters for an enhanced search experience in the Craft CMS control panel.

2840.6k](/packages/fruitstudios-searchit)

PHPackages © 2026

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