PHPackages                             ion-bazan/laravel-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. ion-bazan/laravel-container-debug

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

ion-bazan/laravel-container-debug
=================================

Lists available services in Laravel IoC Container. Works with Laravel 5.4-13.x

v1.7.0(7mo ago)684.0k↓11.9%MITPHPPHP &gt;=7.0CI passing

Since Jul 15Pushed 7mo agoCompare

[ Source](https://github.com/IonBazan/laravel-container-debug)[ Packagist](https://packagist.org/packages/ion-bazan/laravel-container-debug)[ GitHub Sponsors](https://github.com/IonBazan)[ RSS](/packages/ion-bazan-laravel-container-debug/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (3)Versions (10)Used By (0)

Laravel Container Debug command
===============================

[](#laravel-container-debug-command)

[![Laravel 5.4 - 13.x](https://camo.githubusercontent.com/c58ac2d0f07cceb34281e3e7d16e4a03c9e7c1b5976461eee73ddd0fc42680c0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d352e345f2d2d5f31332e782d696e666f726d6174696f6e616c2e737667)](http://laravel.com)[![Latest version](https://camo.githubusercontent.com/751e416843c924c08a0f84901d332999bb64a26db4349f864dafd7431f93d19d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696f6e2d62617a616e2f6c61726176656c2d636f6e7461696e65722d64656275672e737667)](https://packagist.org/packages/ion-bazan/laravel-container-debug)[![GitHub Workflow Status](https://camo.githubusercontent.com/31f0d75766484ae97f218be74bd9156ae37d0fd4a80a201a201718e629141659/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f496f6e42617a616e2f6c61726176656c2d636f6e7461696e65722d64656275672f746573742e796d6c)](https://github.com/IonBazan/laravel-container-debug/actions)[![PHP version](https://camo.githubusercontent.com/7fb34afe74464ed964d6f3e597539b64cc84fbb93d2c79152d6729620c0e6c11/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f696f6e2d62617a616e2f6c61726176656c2d636f6e7461696e65722d64656275672e737667)](https://packagist.org/packages/ion-bazan/laravel-container-debug)[![Codecov](https://camo.githubusercontent.com/ecedf15e2b43960929727f65e133597cb999d243e6229e2143170ebc2f4965eb/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f496f6e42617a616e2f6c61726176656c2d636f6e7461696e65722d6465627567)](https://codecov.io/gh/IonBazan/laravel-container-debug)[![Mutation testing badge](https://camo.githubusercontent.com/ef942e4f29c407181c79f48a4c9283c5369425bb078f1aa29506771c7b81cbd9/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246496f6e42617a616e2532466c61726176656c2d636f6e7461696e65722d64656275672532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/IonBazan/laravel-container-debug/master)[![Downloads](https://camo.githubusercontent.com/d6254543c937c6faa17c4f2c51f739cd183179f8fad68c15213f026a33c8f129/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696f6e2d62617a616e2f6c61726176656c2d636f6e7461696e65722d64656275672e737667)](https://packagist.org/packages/ion-bazan/laravel-container-debug)[![License](https://camo.githubusercontent.com/52cf8c04285a1cc6de8a8b940fb939237226ee22ee0306f92cc14152a04814d4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f696f6e2d62617a616e2f6c61726176656c2d636f6e7461696e65722d64656275672e737667)](https://packagist.org/packages/ion-bazan/laravel-container-debug)

Symfony-inspired package to list available services in Laravel IoC Container. Works with Laravel 5.4-13.x.

Example output
==============

[](#example-output)

```
+--------------------------------------------------------------+-------------------------------------------------------------+--------+-------+
| Service ID                                                   | Class                                                       | Shared | Alias |
+--------------------------------------------------------------+-------------------------------------------------------------+--------+-------+
| IonBazan\Laravel\ContainerDebug\Tests\IContainerContractStub | IonBazan\Laravel\ContainerDebug\Tests\ContainerConcreteStub | No     | No    |
| IonBazan\Laravel\ContainerDebug\Tests\SingletonService       | IonBazan\Laravel\ContainerDebug\Tests\SingletonService      | Yes    | No    |
| alias.b                                                      | alias for "service.b"                                       | No     | Yes   |
| alias.c                                                      | alias for "service.c"                                       | No     | Yes   |
| service.a                                                    | IonBazan\Laravel\ContainerDebug\Tests\ServiceStubA          | No     | No    |
| service.b                                                    | IonBazan\Laravel\ContainerDebug\Tests\ServiceStubB          | No     | No    |
| service.c                                                    | IonBazan\Laravel\ContainerDebug\Tests\ServiceStubC          | No     | No    |
| service.d                                                    | N/A                                                         | No     | No    |
| simple.value.array                                           |  [10,20]                                             | No     | No    |
| simple.value.int                                             |  10                                                | No     | No    |
| simple.value.string                                          |  test                                               | No     | No    |
+--------------------------------------------------------------+-------------------------------------------------------------+--------+-------+

```

Installation
============

[](#installation)

```
composer require --dev ion-bazan/laravel-container-debug
```

Thanks to Laravel's Package Auto-Discovery, you don't need to register the ServiceProvider.

Laravel without auto-discovery
------------------------------

[](#laravel-without-auto-discovery)

If you don't use auto-discovery, add the Service Provider to the `providers` array in your `config/app.php`:

```
\IonBazan\Laravel\ContainerDebug\ServiceProvider::class,
```

Lumen
-----

[](#lumen)

For Lumen, register the Service Provider in your `bootstrap/app.php`:

```
$app->register(\IonBazan\Laravel\ContainerDebug\ServiceProvider::class);
```

Usage
=====

[](#usage)

**TL;DR:** `php artisan container:debug --help`

Usage is pretty straightforward:

- to list all services: `php artisan container:debug`
- to check specific service: `php artisan container:debug MyFooService`
- to list all tags with tagged services: `php artisan container:debug --tags`
- to list all services with tag: `php artisan container:debug --tag=foo`

The command does it best to find the service you want by stripping slashes in service names and looking for any occurrences of given name in service names. For example, to display `service.foo` service information, simply use `php artisan container:debug foo`. If there are more services with the similar name, a prompt will be shown to choose the one you are looking for.

To get the class name of the service, it must be initialized. To check how much time it took for each service, you may use `--profile` option.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance62

Regular maintenance activity

Popularity35

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

Recently: every ~336 days

Total

9

Last Release

239d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1985514?v=4)[Ion Bazan](/maintainers/IonBazan)[@IonBazan](https://github.com/IonBazan)

---

Top Contributors

[![IonBazan](https://avatars.githubusercontent.com/u/1985514?v=4)](https://github.com/IonBazan "IonBazan (17 commits)")

---

Tags

containerdebuglaravellaravel-packagephpsymfonycontainerlaraveldebugcommandservices

### Embed Badge

![Health badge](/badges/ion-bazan-laravel-container-debug/health.svg)

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

###  Alternatives

[daylerees/container-debug

Inspect the Laravel IoC Container from Artisan.

572.8k](/packages/daylerees-container-debug)[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)

PHPackages © 2026

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