Skip to content

An example repository intended to show how to migrate from a one framework to another framework

Notifications You must be signed in to change notification settings

rigorguild/framework-to-framework-migration

Repository files navigation

Framework to framework migration

This is an example repository intended to show how to migrate from one framework to another using PSR7, PSR15 and PSR17. The approach is to layer each framework on a middleware, using Symfony Runtime component and Laminas Stratigility's Middleware pipeline feature.

Using the PSR17 runtime we are able to run any PSR17 complaint HTTP Server Request Handler just by returning it in the public/index.php main function 👉 The class Laminas\Stratigility\MiddlewarePipe is an implementation of that interface, so we can just instanciate it and register all the middlewares that should be an implementation of the Psr\Http\Server\MiddlewareInterface from the PSR15 standard. You will find all the implementations in the namespace App\Middleware.

How to run

Install the Symfony CLI first. Instructions 👉 here 👈. Then 👇

php composer.phar install
symfony serve -d

Available URLs

About

An example repository intended to show how to migrate from a one framework to another framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published