masmerise / laravel-revert
Revert Laravel installations to the original v5 skeleton.
Requires
- php: ~8.2 || ~8.3 || ~8.4
- laravel/framework: ^12.0
Requires (Dev)
- larastan/larastan: ^3.6.1
- laravel/pint: ^1.24
- orchestra/testbench: ^10.6
This package is auto-updated.
Last update: 2025-09-05 06:23:58 UTC
README
Revert Laravel installations to the original v5 skeleton
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
:
App\Console\Kernel
will be restored.App\Http\Kernel
will be restored.App\Exceptions\Handler
will be restored.App\Providers\RouteServiceProvider
will be restored.- The previous
boostrap/app.php
will be restored. - The
providers
key will be added back toconfig/app.php
. bootstrap/providers.php
will be reconciled with theproviders
key inconfig/app.php
.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.