jalle19/laravel-lost-interfaces

A collection of lost interfaces for the Laravel framework
56,238
Install
composer require jalle19/laravel-lost-interfaces
Latest Version:1.3.0
License:MIT
Last Updated:May 19, 2026
Links: GitHub  ·  Packagist
Maintainer: Jalle19

laravel-lost-interfaces

Latest Stable Version

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.

Installation

composer require jalle19/laravel-lost-interfaces

Usage

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

Contributing

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/.

License

MIT

Related Packages

erirk/paypalpayment

laravel-paypalpayment is simple package help you process direct credit card paym...

0
gabrieloliverio/laravel5-generators

Database metadata-based generators for Laravel 5

1
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

628,058,007 9,707
laravel/framework

The Laravel Framework.

572,249,171 34,893
laravel/tinker

Powerful REPL for the Laravel framework.

485,678,092 7,440