I’m curious if it is possible to move the written and fully working project to Kohana step-by-step. I mean if it is possible to replace page by page. So the project will move consequently from 100% of non-framework code to 100% of Kohana code, page by page.
The project uses php/js/css/html, MySQL and Apache.
The project is huge (with a guest and member areas).
Thank you.
I’m curious if it is possible to move the written and fully working project
Share
I’ve never used Kohana, but I’m quite familiar in other PHP framework (Yii). My guess is that it is NOT possible. Or to put it in other way: everything is possible (except opening an umbrella in your ass! :), but taking time (and money) into account, it is not worth doing so.
Most professional frameworks are complete opposite to “pure PHP” code in extremely many areas. Code is separated most times (MVC = model-view-controller design pattern) and uses mostly framework classes or code. I would even risk to say that writing an application in some pro framework means using only 10-20% of pure PHP code and doing rest 80-90% purely on framework classes, extensions, controllers etc.
In other words: porting a “pure PHP” application into framework code would mean writing that application from scratch. I’m not sure, if you would be able to copy-paste more than 5-10% of your source code?