PHPackages                             mikelooper/container-settings - 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. mikelooper/container-settings

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

mikelooper/container-settings
=============================

A template to create libraries

0.0.5(2y ago)02973MITPHPPHP ^8.2

Since Nov 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mikel00per/php-container-settings)[ Packagist](https://packagist.org/packages/mikelooper/container-settings)[ Docs](https://github.com/mikel00per/container-settings)[ RSS](/packages/mikelooper-container-settings/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (5)Versions (7)Used By (3)

PHP Container Settings
======================

[](#php-container-settings)

This is a package provides a factory called `ContainerFactory`, a container (PSR-11) using [PHP-DI](https://php-di.org/). This container will have an implementation of `SettingsInterface` that implementation allow access to the settings using "dot annotations". Also, you can optimize perform in your project using the cache feature.

Example use
-----------

[](#example-use)

To use this package you need create a file or an array, in case of use a file you must return an array in that. Here you can see an example of use:

```
// settings.php
return [
    'foo' => [
        'bar' => 1
    ]
];

```

```
// index.php
use ContainerFactory;

$settingsPath = __DIR__ . '/settings.php'; // or array
$container = ContainerFactory::create($settingsPath);

$settings = $container->get(SettingsInterface::class');
$number = $settings->get('foo.bar');
echo $number; // 1

```

Make commands
-------------

[](#make-commands)

```
$ make help

Usage: make [target] ...

Container:
  run                 Build and run php container
  build               Build php container
  stop                Stop php container
  destroy             Remove all data related with php container
  shell               SHH in container
  logs                Show logs in container

Miscellaneous:
  help                Show this help

Code:
  exec                Execute composer commands

Tests:
  test                Execute tests
  test-coverage       Execute tests with coverage

Style:
  lint                Show style errors
  lint-fix            Fix style errors

Written by Antonio Miguel Morillo Chica, version v1.0
Please report any bug or error to the author.

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

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

Total

5

Last Release

843d ago

### Community

Maintainers

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

---

Top Contributors

[![mikel00per](https://avatars.githubusercontent.com/u/26721529?v=4)](https://github.com/mikel00per "mikel00per (27 commits)")

---

Tags

library

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mikelooper-container-settings/health.svg)

```
[![Health](https://phpackages.com/badges/mikelooper-container-settings/health.svg)](https://phpackages.com/packages/mikelooper-container-settings)
```

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.0k](/packages/friendsofphp-php-cs-fixer)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[drupal-code-builder/drupal-code-builder

Code generator for Drupal

27253.3k1](/packages/drupal-code-builder-drupal-code-builder)[phlak/directory-lister

PHP directory lister

2.5k1.4k](/packages/phlak-directory-lister)[symfony/stimulus-bundle

Integration with your Symfony app &amp; Stimulus!

17417.4M292](/packages/symfony-stimulus-bundle)[illuminate/session

The Illuminate Session package.

9939.3M847](/packages/illuminate-session)

PHPackages © 2026

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