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)02863MITPHPPHP ^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 1mo ago

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 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community12

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

Total

5

Last Release

797d 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

[league/iso3166

ISO 3166-1 PHP Library

69536.3M116](/packages/league-iso3166)[drupal-code-builder/drupal-code-builder

Code generator for Drupal

27241.1k1](/packages/drupal-code-builder-drupal-code-builder)[dekor/php-array-table

PHP Library for printing associative arrays as text table (similar to mysql terminal console)

296.6M2](/packages/dekor-php-array-table)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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