Download the PHP package smcrow/binding-utilities without Composer
On this page you can find all versions of the php package smcrow/binding-utilities. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package binding-utilities
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
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 excludenode_modules
andvendor
.--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
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
Install Through Composer
Register the Command
Laravel 5.5
Laravel 5.5 allows for the auto-discovery of service providers. The ContainerInformationProvider will automatically be discovered.
Pre Laravel 5.5
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:
Example Usage
Here's sample output from the binding:list
command from my LeaseTracker
application.
Here's sample output from a dummy application:
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.