masmerise/laravel-revert

Revert Laravel installations to the original v5 skeleton.

12.0.0 2025-09-04 11:49 UTC

This package is auto-updated.

Last update: 2025-09-05 06:23:58 UTC


README

Laravel Revert Banner

Revert Laravel installations to the original v5 skeleton

Latest Version on Packagist Total Downloads

Warning

This package is supposed to be used right after having installed a fresh Laravel project using laravel new. We are not responsible for any progress lost if you fail to follow this instruction.

Why does this package exist?

This package aims to restore the former 5.0 structure with both the Console and Http kernels as this provides much more flexibility compared to the new ApplicationBuilder class that comes with a lot of assumptions out of the box.

Laravel's new project structure simplified things a lot. However, this simplification comes at a trade-off. Developers that are already well-versed in Laravel's ecosystem probably have no need for such a simplification because the internals of the framework are like second nature to them.

As such, the main goal of this package is getting rid of ApplicationBuilder and keeping the other structural elements intact.

Overview

These are the changes that'll be carried out in order to achieve the primary goal of this package, which is the elimination of the new ApplicationBuilder:

  1. App\Console\Kernel will be restored.
  2. App\Http\Kernel will be restored.
  3. App\Exceptions\Handler will be restored.
  4. App\Providers\RouteServiceProvider will be restored.
  5. The previous boostrap/app.php will be restored.
  6. The providers key will be added back to config/app.php.
  7. bootstrap/providers.php will be reconciled with the providers key in config/app.php.
  8. bootstrap/providers.php will be removed.

Note

If you need other previously available files such as EventServiceProvider, add these yourself. This package embraces the lean nature of the new structure except the ApplicationBuilder.

Installation

You can install the package via composer:

composer require --dev masmerise/laravel-revert

Usage

php artisan revert

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security

If you discover any security related issues, please email support@muhammedsari.me instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.