Migrating from one PHP structure to another

I work with a web company that is approaching the point where you probably need to rethink the product as V2 - due to the development of some of its foundations and the principles of V1, which were built into almost everything from the data model for user interfaces. For various reasons, this evolution may include a move from CakePHP (with which V1 was built) to Symfony or Zend.

I would like to ask for some expert opinions on how people could manage such a transition for a website that has significant traffic and generates revenue. I don’t want to open a discussion about pro and con different PHP frameworks or why this migration may be required. Rather, it would be very interesting for me to find out if there are some practical alternatives to essentially create V2 from scratch along with V1 for several months - and block precious coding time during this intensive period. An example of such an alternative would be porting an application in parts over a longer period of time.

I would be grateful for any opinions of people who could manage or participate in such transitions.

Thanks in advance.

+3
source share
2 answers

Symfony makes it easy to break out of the structure at almost every level of the process, which simplifies integration with other platforms. Here is how I would do it:

  • Configure and install Symfony.
  • Put your existing CakePHP project inside Symfony as a plugin.
  • Install the plugin in order to have an entire route that takes parameters and treats it like a PHP Cake request. You now have all of your CakePHP pages running in Symfony. This is probably the most difficult step and may include fixing some startup problems or other conflicts.
  • Now you can selectively migrate CakePHP models, controllers, and views.

, . - .

+3

Zend, Zend Classes , . ZF. , , " " /. ZF. , , ...

-

  • zend , RSS, , .. .
  • (m) VC ZF,
  • - Zend-ish
+3

Source: https://habr.com/ru/post/1773981/


All Articles