Framework to framework migration
This is an example repository intended to show how to migrate from one framework to another framework. The approach is to layer each framework on a middleware, using Zend Stratigility, Zend Diactoros and Zend HttpHandlerRunner.
- Zend Stratigility in order to build the middlewares pipe.
- Zend HttpHandlerRunner in order to run the middleware pipe.
- Zend Diactoros as PSR-7 implementation.
How to run
composer install
php -S 127.0.0.1:8000 -t ./public
Available URLs
- /symfony -> Served by Symfony through
App\Middleware\SymfonyMiddleware
- /yii1 -> Served by Yii 1.1 version through
App\Middleware\YiiMiddleware
- /yii2 -> Served by Yii 2 version through
App\Middleware\Yii2Middleware
- /silex -> Served by Silex through
App\Middleware\SilexMiddleware
- /silex/images/image.jpg