masmerise / revert-for-laravel
Revert Laravel installations to the original v5 skeleton.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/masmerise/revert-for-laravel
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-25 08:08:22 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\Kernelwill be restored.App\Http\Kernelwill be restored.App\Exceptions\Handlerwill be restored.App\Providers\RouteServiceProviderwill be restored.- The previous
boostrap/app.phpwill be restored. - The
providerskey will be added back toconfig/app.php. bootstrap/providers.phpwill be reconciled with theproviderskey inconfig/app.php.bootstrap/providers.phpwill 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/revert-for-laravel
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.
