Package Data | |
---|---|
Maintainer Username: | Jalle19 |
Maintainer Contact: | sam.stenvall@nordsoftware.com (Sam Stenvall) |
Package Create Date: | 2017-05-26 |
Package Last Update: | 2020-08-31 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:00:46 |
Package Statistics | |
---|---|
Total Downloads: | 55,113 |
Monthly Downloads: | 362 |
Daily Downloads: | 18 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
If you've used the Laravel framework for a while, you may have noticed that the common convention is to add certain methods that will magically get called at some point.
Common examples are console commands that should have a handle()
method, middleware that should have a handle()
method, and so on.
This can get pretty annoying since you need to look up the correct method names and their signatures from the documentation. Not having interfaces also makes it harder to use your IDE to find which classes implement some functionality (e.g. finding all event subscribers to ensure you've actually registered all of them).
This library provides some of these missing interfaces.
composer require jalle19/laravel-lost-interfaces
Just implement the interfaces you need. The following list shows the currently available interfaces:
src/
├── Console
│ └── Command.php
├── Events
│ └── Subscriber.php
├── Http
│ ├── Middleware
│ │ └── Middleware.php
│ └── Requests
│ └── FormRequest.php
├── Mail
│ └── Buildable.php
└── Providers
└── ServiceProvider.php
If you feel like some interface is missing, feel free to make a pull request. Remember to update the list in the
README using tree src/
.
MIT