R
R
Roman862016-08-11 18:06:36
symfony
Roman86, 2016-08-11 18:06:36

How to migrate a project from Codeigniter 2.2 to Laravel 5.2?

There is a project on Codeigniter 2.2 - how to port it relatively painlessly to Laravel/Symfony. Also interested in the possibility of using Eloquent in Codeigniter during the transfer, in order to then use the same models in Laravel

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-08-11
Protko @Fesor

how to port it relatively painlessly to Laravel/Symfony.

1) we connect separate symphony components and systematically transfer the project to them. Well, not only symphony components, in general, components that are not tied to a specific framework.
2) we take out the logic from the controllers to the services (if you have them), we connect which dependency container. Making controllers thin. Then we clean the services from dependencies on CI, first gradually moving them all into some small services and then simply getting rid of them.
3) we sculpt from above the HTTP kernel which will forward requests for new or old controllers.
4) ???
5) profit.
https://www.symfony.fi/entry/rewrite-your-legacy-p... - I recommend that you read it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question