# silexphp/Pimple

A small PHP dependency injection container

Repository: https://github.com/silexphp/Pimple
Canonical: https://ross.abutalabs.com/products/pimple
Language: PHP
License: MIT
License Family: permissive
Topics: php, pimple, silex, dependency-injection
Last push: 2026-03-02T21:47:09+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 70, release rhythm 35, longevity 100
- inputs: {"age_days": 6288, "days_push": 184, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2665, forks 299 (observed 2026-08-28T04:07:09.085021+00:00)

## What it is
Pimple is a small dependency injection container for PHP that manages services and parameters via closures. It is now in maintenance mode, accepting only PHP compatibility and security fixes.

## Use cases
- manage services and parameters in a PHP application
- learn how a dependency injection container works
- lazy-load objects only when they are requested
- define factory services that return new instances on each call
- wire dependencies in small PHP projects without a heavy framework

## When to choose
- you need a tiny, fast DI container with minimal API
- you maintain a legacy Silex or Pimple-based codebase
- you want a simple educational example of DI container internals

## When to avoid
- you need a full-featured DI container with autowiring, annotations, or compiler passes
- you are starting a new project where PSR-11 containers like Symfony DI or PHP-DI fit better
- you expect new features or active development

## Facets
- artifact type: library
- maturity: maintenance
- function: middleware, developer-tools
- domain: web-development, backend, developer-tools
- platform: php
- tags: dependency-injection, service-container, silex, microframework-support

## Member repositories
- silexphp/Pimple (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:09.085021+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:18:17.867151+00:00, confidence not recorded.
  - readme: https://github.com/silexphp/Pimple (fetched 2026-08-28T04:07:09.085021+00:00, sha fd7849049b1e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
