Skip to content

Toolkit to help with your Symfony to Laravel migration

Notifications You must be signed in to change notification settings

TomasVotruba/laravelize

Repository files navigation

Laravelize - Make Symfony to Laravel migration faster and easier

Install

composer require tomasvotruba/laravelize --dev

Usage

1. Migrate PHP code with Rector

Add migrate set to your rector.php:

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;

return static function (RectorConfig $rectorConfig): void {
    $rectorConfig->sets([
        \TomasVotruba\Laravelize\Enum\SetList::SYMFONY_TO_LARAVEL
    ]);
};

Make use of config:

vendor/bin/rector process src

2. Migrate Twig to Blade with regexes

vendor/bin/laravelize twig-to-blade views

@todo

About

Toolkit to help with your Symfony to Laravel migration

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages