PHPackages                             daylerees/container-debug - 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. daylerees/container-debug

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

daylerees/container-debug
=========================

Inspect the Laravel IoC Container from Artisan.

4.0.0(12y ago)572.8k10[2 PRs](https://github.com/daylerees/container-debug/pulls)MITPHP

Since Oct 8Pushed 8y ago5 watchersCompare

[ Source](https://github.com/daylerees/container-debug)[ Packagist](https://packagist.org/packages/daylerees/container-debug)[ RSS](/packages/daylerees-container-debug/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/3be804a0660d3f6f862d2eb7e6dad90d872feb921eebe11c40e2a64469e8e8cc/68747470733a2f2f7472617669732d63692e6f72672f6461796c65726565732f636f6e7461696e65722d64656275672e706e67)](https://travis-ci.org/daylerees/container-debug.png)

Container Debug
===============

[](#container-debug)

The container debug command can be used to inspect the Laravel four service container. It's similar to the container:debug from the Symfony framework. It will show a list of all bindings, their types, values if scalar, and the time it takes to resolve each binding.

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

[](#installation)

Add the following dependency to your Laravel project:

```
"daylerees/container-debug": "4.0.*"

```

Now run...

```
composer update

```

to download the package. Now add the service provider to your project configuration at `app/config/app.php`.

```
'providers' => array(
    'Illuminate\Foundation\Providers\ArtisanServiceProvider',
    'Illuminate\Auth\AuthServiceProvider',
    'Illuminate\Cache\CacheServiceProvider',
    'Illuminate\Foundation\Providers\CommandCreatorServiceProvider',
    --- more ---
    'DayleRees\ContainerDebug\ServiceProvider'
),

```

Now you can execute the command using the Artisan CLI tool.

Usage
-----

[](#usage)

```
php artisan container:debug

```

You will see an output similar to the following.

```
+--------------------------+------------------------------------------------------------+----------------------+
| Identifier               | Service                                                    | Resolution time (ms) |
+--------------------------+------------------------------------------------------------+----------------------+
| artisan                  | Illuminate\Console\Application                             | 0.011                |
| asset.publisher          | Illuminate\Foundation\AssetPublisher                       | 0.020                |
| auth                     | Illuminate\Auth\AuthManager                                | 0.023                |
| auth.reminder            | Unable to resolve service.                                 | N/A                  |
| auth.reminder.repository | Unable to resolve service.                                 | N/A                  |
| cache                    | Illuminate\Cache\CacheManager                              | 0.044                |
| command.asset.publish    | Illuminate\Foundation\Console\AssetPublishCommand          | 0.058                |
| command.auth.reminders   | Illuminate\Auth\Console\MakeRemindersCommand               | 0.029                |
| command.cache.clear      | Illuminate\Cache\Console\ClearCommand                      | 0.023                |
| command.dump-autoload    | Illuminate\Foundation\Console\AutoloadCommand              | 0.022                |
| command.environment      | Illuminate\Foundation\Console\EnvironmentCommand           | 0.023                |
| command.key.generate     | Illuminate\Foundation\Console\KeyGenerateCommand           | 0.022                |
| env                      |  "production"                                      | 0.017                |
| events                   | Illuminate\Events\Dispatcher                               | 0.018                |
| exception                | Illuminate\Exception\Handler                               | 0.019                |
| exception.debug          | Illuminate\Exception\WhoopsDisplayer                       | 0.018                |
+--------------------------+------------------------------------------------------------+----------------------+

```

The first column contains the identifier for the service within the IoC container.

The second column contains information about the service which depends on its type:

- (Scalar Value) The type and value. e.g "foo"
- (Non Scalar Value) The type of the value. e.g
- (Object) The class name of the object. e.g DateTime

If an exception is thrown when the service is resolved, then the column will show 'Unable to resolve service.'.

The third column displays the time taken to resolve the service from the IoC container in milliseconds.

Possible Uses
-------------

[](#possible-uses)

- Quick lookup of container objects : php artisan container:debug | grep "mail"
- Find which classes are represented by Facades to container objects.
- Diagnose performance issues by studying resolution times of container objects.

Enjoy, and as always, star the repo and tell your friends!

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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

Unknown

Total

1

Last Release

4601d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5df33ae838a2ae1bf42eda2f083df8cf63bdc3634b8c728d9acc883e72f62248?d=identicon)[daylerees](/maintainers/daylerees)

---

Top Contributors

[![daylerees](https://avatars.githubusercontent.com/u/207870?v=4)](https://github.com/daylerees "daylerees (5 commits)")[![antoniofrignani](https://avatars.githubusercontent.com/u/802713?v=4)](https://github.com/antoniofrignani "antoniofrignani (1 commits)")

---

Tags

containerlaraveldebugcommand

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/daylerees-container-debug/health.svg)

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

###  Alternatives

[nunomaduro/laravel-pot

Set of commands to inspect Laravel's container

991.6k](/packages/nunomaduro-laravel-pot)[godruoyi/easy-container

A small PHP 5.3 dependency injection container extended from Laravel container.

334.9k2](/packages/godruoyi-easy-container)[dolphiq/laravel-aescrypt

AES encrypt and decrypt Eloquent attributes inspired by elocryptfive

171.7k](/packages/dolphiq-laravel-aescrypt)

PHPackages © 2026

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