PHPackages                             digitalkaoz/container-checker - 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. digitalkaoz/container-checker

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

digitalkaoz/container-checker
=============================

Symfony2 DI-Container Checker

26PHP

Since Mar 26Pushed 13y ago1 watchersCompare

[ Source](https://github.com/digitalkaoz/container-service-checker)[ Packagist](https://packagist.org/packages/digitalkaoz/container-checker)[ RSS](/packages/digitalkaoz-container-checker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Container-Checker
=================

[](#container-checker)

This small Library checks various aspects of a Symfony2 DI-Container.

Installation
------------

[](#installation)

let composer do the job:

```
$ composer require digitalkaoz/container-checker

```

or edit your `composer.json` manually:

```
"require" : {
    "digitalkaoz/container-checker" : "*"
}
```

Usage
-----

[](#usage)

You can check **services** or **parameters** of your DI-Container. Services will be checked if they could be *getted* from the Container. Parameters which looks like ClassNames will be checked if they can be autoloaded.

Here are a few use cases:

**Check Instanciation of all Services**

```
$ bin/checker.php check:services path/to/your/AppKernel.php

```

or with different Environments and Scopes:

```
$ bin/checker.php check:services path/to/your/AppKernel.php -env=prod --scope=request

```

**Check if all Parameters which are Class-Names can be autoloaded**

```
$ bin/checker.php check:parameters path/to/your/AppKernel.php

```

or with different Environments:

```
$ bin/checker.php check:parameters path/to/your/AppKernel.php -env=prod

```

Test
----

[](#test)

Nothing to see here, move along ;)

TODO
----

[](#todo)

- some tests
- grep the autoloader of the loaded Kernel and ask there for a autoloadable class insteat of `class_exists`
- some more sanity checks
- Portable for other Containers (e.g. ZendDI)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![digitalkaoz](https://avatars.githubusercontent.com/u/293591?v=4)](https://github.com/digitalkaoz "digitalkaoz (3 commits)")

### Embed Badge

![Health badge](/badges/digitalkaoz-container-checker/health.svg)

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

###  Alternatives

[tzfrs/googlesitemapparser

Google Sitemap is a Sitemap standard that is supported by Ask.com, Google, YAHOO and MSN Search. This library can read in such Sitemaps and parse all urls from them.

143.3k](/packages/tzfrs-googlesitemapparser)[lrobert/gravatar

A library to make working with Gravatar in PHP easy.

101.4k](/packages/lrobert-gravatar)

PHPackages © 2026

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