PHPackages                             vanderson139/laravel-vintage - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. vanderson139/laravel-vintage

ActiveProject[Utility &amp; Helpers](/categories/utility)

vanderson139/laravel-vintage
============================

Runs legacy code inside a Laravel Project

51PHP

Since Mar 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/vanderson139/laravel-vintage)[ Packagist](https://packagist.org/packages/vanderson139/laravel-vintage)[ RSS](/packages/vanderson139-laravel-vintage/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-vintage
===============

[](#laravel-vintage)

Runs legacy code inside a Laravel project

Why?
----

[](#why)

To help and endorse legacy projects upgrade to a modern platform, allowing routes to be migrated gradativelly and, in the meanwhile, making it a fun process.

Installation
------------

[](#installation)

1 - Create a new laravel project

```
composer create-project --prefer-dist laravel/laravel {projectName} "5.8.*"
```

2 - Require via Composer

```
composer create-project vanderson139/laravel-vintage
```

3 - Get configuration file

```
php artisan vendor:publish
```

4 - Put your legacy project inside `./vintage` folder.

How It Works?
-------------

[](#how-it-works)

When laravel gets a request, it first will attempt to find a route for it. Then, if there's none, tries to load a file from `vintage` folder.

After migrate any route from legacy php files to a laravel controller, place it's path into `migrated_routes` in config file.

Personalization
---------------

[](#personalization)

Your project may not run perfectly out of the box. In this cases, is possible do add new middlewares to make any adjustments you need. Just make sure to place them into config file.

```
