Is it posibble to go from plain PHP to PHP MVC framework after launch?

FunGuy

Free Member
Apr 26, 2010
51
0
Hi,

I know that on of the biggest benefits of programming with PHP MVC framework is that it is easier to scale after the project is taking off.. but if Im just testing the waters for my product will it be possible for me to turn from PHP to PHP MVC later and will it be hard to do this or I will have to do everything from scratch again?
 

edmondscommerce

Free Member
Nov 11, 2008
3,653
628
UK
Totally depends

Chances are this would pretty much involve a full rebuild though.

MVC is just one aspect of project design. The bigger question is if your project is in Object Oriented PHP or Procedural PHP

If its OO PHP then switching to MVC would generally be much easier than switching from procedural PHP.

Ultimatley though - if your project is finished and working, why would you change?

If you want MVC though - start with MVC.
 
Upvote 0

edmondscommerce

Free Member
Nov 11, 2008
3,653
628
UK
MVC is just an architecture style it doesn't necessarily mean anything with regards to scalability.

That said, MVC is widely regarded as a best practice so chances are that if your project is created in the MVC paradigm it is also using other best practices such as ORM and has an easy route to using clustered database servers etc.

Ultimately though I think this level of detail isn't something you should be worrying about, you should use a developer or agency who will do things in the best way and you should stick to concentrating on your product
 
Upvote 0

peteoc

Free Member
Jul 6, 2011
31
4
scaling in what sense? Do you forsee that your website is going to start receiving millions of hits?

Scaling comes in 2 forms, the code and it's durability to not grind the server down to a halt because bad coding practise has been used. Alternatively it's the hardware that's going to take a hit.

Hardware is cheap now a days and easy enough to set up a system which is scaleable, as and when your site get's even busier you simply add more hardware!
 
Upvote 0

Latest Articles