PHPackages                             smcrow/laravel-container-info - 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. smcrow/laravel-container-info

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

smcrow/laravel-container-info
=============================

Artisan commands for getting information about the IoC container.

1.2.2(8y ago)5401[3 issues](https://github.com/cr0wst/laravel-container-info/issues)MITPHPPHP &gt;=7.0.2

Since Jul 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/cr0wst/laravel-container-info)[ Packagist](https://packagist.org/packages/smcrow/laravel-container-info)[ RSS](/packages/smcrow-laravel-container-info/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (5)Versions (9)Used By (0)

Laravel Container Info
======================

[](#laravel-container-info)

[![Latest Stable Version](https://camo.githubusercontent.com/bc411730956216bc157d9a75b78d6e40467edd01615a71692292a100f3cf7b1c/68747470733a2f2f706f7365722e707567782e6f72672f736d63726f772f6c61726176656c2d636f6e7461696e65722d696e666f2f762f737461626c65)](https://packagist.org/packages/smcrow/laravel-container-info) [![Latest Unstable Version](https://camo.githubusercontent.com/8b7cc7b8aae25f882e8ff160f06644cbeb0e205a6bc1fbb13b2de7561b031727/68747470733a2f2f706f7365722e707567782e6f72672f736d63726f772f6c61726176656c2d636f6e7461696e65722d696e666f2f762f756e737461626c65)](https://packagist.org/packages/smcrow/laravel-container-info) [![Total Downloads](https://camo.githubusercontent.com/c5db1e71075c03062fa320d97aece77e6f4608303d9aade6e8fbd57561ddb3b2/68747470733a2f2f706f7365722e707567782e6f72672f736d63726f772f6c61726176656c2d636f6e7461696e65722d696e666f2f646f776e6c6f616473)](https://packagist.org/packages/smcrow/laravel-container-info) [![Build Status](https://camo.githubusercontent.com/ba0f98ea1fe0db13d5dd97ffc855999ccf854603147fac9729292fb12e091814/68747470733a2f2f7472617669732d63692e6f72672f6372307773742f6c61726176656c2d636f6e7461696e65722d696e666f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/cr0wst/laravel-container-info)

This is a suite of custom commands for Artisan that gives information about the IoC container. The following commands are added:

Working with Bindings
---------------------

[](#working-with-bindings)

- `binding:list` - Lists the registered bindings by showing the abstract (interface) and concrete class that will be injected.
    - `--include-illuminate` - Indicates that Illuminate classes should be included. They are not included by default.
- `binding:usage` - Lists the registered bindings and which files they are referenced in. By default will exclude `node_modules` and `vendor`.
    - `--include-illuminate` - Indicates that Illuminate classes should be included. They are not included by default.
    - `--include-vendor` - Indicates that the vendor directory should be included. It is not included by default.
    - `--exclude=` - A comma separated string that indicates which directories to exclude.
    - `--sort` - Indicates that the information should be sorted.

Working with Service Providers
------------------------------

[](#working-with-service-providers)

- `provider:list` - Lists the registered service providers.
    - `--include-illuminate` - Indicates that Illuminate classes should be included. They are not included by default.
    - `--sort` - Indicates that the information should be sorted.

Usage
=====

[](#usage)

Install Through Composer
------------------------

[](#install-through-composer)

```
composer require smcrow/laravel-container-info --dev

```

Register the Command
--------------------

[](#register-the-command)

### Laravel 5.5

[](#laravel-55)

Laravel 5.5 allows for the auto-discovery of service providers. The ContainerInformationProvider will automatically be discovered.

### Pre Laravel 5.5

[](#pre-laravel-55)

You'll need to register the command in order for it to be usable. Modify the `register` method of `AppServiceProvider` This will add the provider for the local environment:

```
public function register()
{
    if ($this->app->environment() === 'local') {
        $this->app->register(ContainerInformationProvider::class);
    }
}
```

Example Usage
-------------

[](#example-usage)

```
php artisan binding:list

```

Here's sample output from the `binding:list` command from my `LeaseTracker` application.

```
+-----------------------------------------------------------------+--------------------------------------------------------------+
| Abstract                                                        | Concrete                                                     |
+-----------------------------------------------------------------+--------------------------------------------------------------+
| Illuminate\Contracts\Http\Kernel                                | LeaseTracker\Http\Kernel                                     |
| Illuminate\Contracts\Console\Kernel                             | LeaseTracker\Console\Kernel                                  |
| Illuminate\Contracts\Debug\ExceptionHandler                     | LeaseTracker\Exceptions\Handler                              |
| Illuminate\Session\Middleware\StartSession                      | Illuminate\Session\Middleware\StartSession                   |
| LeaseTracker\Services\Vehicle\VehicleServiceInterface           | LeaseTracker\Services\Vehicle\VehicleService                 |
| LeaseTracker\Services\Mileage\MileageServiceInterface           | LeaseTracker\Services\Mileage\MileageService                 |
| LeaseTracker\Services\Calculation\CalculationServiceInterface   | LeaseTracker\Services\Calculation\CalculationService         |
| LeaseTracker\Services\VehicleImage\VehicleImageServiceInterface | LeaseTracker\Services\VehicleImage\GoogleVehicleImageService |
| LeaseTracker\Repositories\VehicleRepositoryInterface            | LeaseTracker\Repositories\VehicleRepository                  |
| LeaseTracker\Repositories\MileEntryRepositoryInterface          | LeaseTracker\Repositories\MileEntryRepository                |
| Illuminate\Console\Scheduling\ScheduleFinishCommand             | Illuminate\Console\Scheduling\ScheduleFinishCommand          |
| Illuminate\Console\Scheduling\ScheduleRunCommand                | Illuminate\Console\Scheduling\ScheduleRunCommand             |
| Illuminate\Contracts\Pipeline\Hub                               | Illuminate\Pipeline\Hub                                      |
+-----------------------------------------------------------------+--------------------------------------------------------------+

```

```
php artisan provider:list

```

Here's sample output from a dummy application:

```
+-----------------------------------------------------------------------------+----------+----------------+
| Providers                                                                   | Deferred | Provides       |
+-----------------------------------------------------------------------------+----------+----------------+
| Fideloper\Proxy\TrustedProxyServiceProvider                                 |          |                |
| Smcrow\ContainerInformation\BindingInformation\BindingInformationProvider   |          |                |
| Smcrow\ContainerInformation\ProviderInformation\ProviderInformationProvider |          |                |
| Smcrow\ContainerInformation\ContainerInformationProvider                    |          |                |
| App\Providers\AppServiceProvider                                            |          |                |
| App\Providers\AuthServiceProvider                                           |          |                |
| App\Providers\EventServiceProvider                                          |          |                |
| App\Providers\RouteServiceProvider                                          |          |                |
| Laravel\Tinker\TinkerServiceProvider                                        | true     | command.tinker |
+-----------------------------------------------------------------------------+----------+----------------+

```

Feedback and Contributions
==========================

[](#feedback-and-contributions)

Please feel free to offer suggestions by submitting an Issue. Alternatively, submit a pull request with any features you wish to add. This is a work-in-progress, and I would welcome any and all feedback.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance8

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 92.1% 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 ~14 days

Recently: every ~7 days

Total

8

Last Release

3110d ago

PHP version history (2 changes)1.0.0-alphaPHP &gt;=5.5.0

1.0.1PHP &gt;=7.0.2

### Community

Maintainers

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

---

Top Contributors

[![cr0wst](https://avatars.githubusercontent.com/u/8314724?v=4)](https://github.com/cr0wst "cr0wst (58 commits)")[![sbine](https://avatars.githubusercontent.com/u/1902973?v=4)](https://github.com/sbine "sbine (5 commits)")

---

Tags

artisanbindinglaravellaravel-containerphpregistered-bindingscontainerlaravelartisan

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/smcrow-laravel-container-info/health.svg)

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

###  Alternatives

[nunomaduro/laravel-pot

Set of commands to inspect Laravel's container

991.6k](/packages/nunomaduro-laravel-pot)[daylerees/container-debug

Inspect the Laravel IoC Container from Artisan.

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