PHPackages                             mascherucci/pimpyaml-container - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. mascherucci/pimpyaml-container

AbandonedArchivedLibrary[PSR &amp; Standards](/categories/psr-standards)

mascherucci/pimpyaml-container
==============================

A simple Pimple container configurable from yaml file, symfony's style syntax

1.1.3(9y ago)036[1 issues](https://github.com/donkyfronky/pimpyaml-container/issues)MITPHPPHP &gt;=5.5.0

Since Jun 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/donkyfronky/pimpyaml-container)[ Packagist](https://packagist.org/packages/mascherucci/pimpyaml-container)[ Docs](http://www.labcode.it)[ RSS](/packages/mascherucci-pimpyaml-container/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (8)Used By (0)

Pimpyaml is a simple configuration package for Pimple container. It implements [ContainerInterface](https://github.com/container-interop/container-interop), so you can switch easly with another [container](https://github.com/container-interop/container-interop#projects-implementing-containerinterface)

\#Install `composer require mascherucci/pimpyaml-container`

Usage
=====

[](#usage)

You can obviously define the service in normal [way](https://github.com/silexphp/Pimple#defining-services)or you can define with yaml `config.yml` file with symfony like syntax

Defining Services
-----------------

[](#defining-services)

### Loading config file

[](#loading-config-file)

```
  $conf_file = __DIR__.'/config.yml';
  $config = \SwissArmy\ConfigHandler::loadConf($conf_file);
  $container = new \SwissArmy\SimpleContainer($config);
```

`ConfigHandler` support several `imports -> resource` if you want to separate domain of configuration as you can see below

```
imports:
    - resource: dependency.yml
    - resource: routes.yml
customvalues:
    custom1: 1
```

### The Services

[](#the-services)

```
services:
    zone:
        class: \DateTimeZone
        arguments: ['America/Adak']
    time:
        class: \DateTime
        arguments: ['2016-01-01','@zone']
    time2
        class: \DateTime
        calls:
            - [setTimezone , ['@zone']]
    dummy
        class: \yourclass
        arguments: ['@container']
    dummy2
        class: \yourclass
        arguments: ['%custom1%']
```

At moment the only markdown support, as you can see, is `@object`,`@container`(is a special word to pass the container),`%yourvariable%`

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~29 days

Total

6

Last Release

3504d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10c597f920990e0be0d33adad50901402c0c6a0b059c10be99adf5681cdb2026?d=identicon)[donkyfronky](/maintainers/donkyfronky)

---

Top Contributors

[![donkyfronky](https://avatars.githubusercontent.com/u/19857512?v=4)](https://github.com/donkyfronky "donkyfronky (13 commits)")

---

Tags

symfonycontainercontainer-interopyamlpimple

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/mascherucci-pimpyaml-container/health.svg)

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

###  Alternatives

[php-di/php-di

The dependency injection container for humans

2.8k48.9M989](/packages/php-di-php-di)

PHPackages © 2026

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