Wednesday 7 November 2018

Php framework : symfony 1, symfony 2 or Yii



We are going to switch from an homemade framework to Symfony or Yii. The capabilities of these two framework are, from our point of view, similar (ie they both have what we need).



Our situation : php 5.2.9, medium-size website (10.000 uniques / day) but shared hosting.





  • Given the version of php that we have, we can't go for symfony 2 (it needs 5.3.4) so is it a smart move to go for symfony 1 now that the version 2 is out ?

  • We are in shared hosting (going to a dedicated server is not an option for now, we don't have the money for it), won't symfony 1 and yii ask for too much ressources (I'm more worry about symfony 1, from what I've read) ?

  • Some of the websites contributors are not really experienced with php / MVC frameworks : once the structure of the website will be converted to one of these 2 frameworks, will there be difficulties for these contributors ? Spending 2-3 days to discover the framework is OK, 2-3 weeks is not. I've read that yii has less tutorials (but complete documentation) than symfony but this last one is more difficult to understand.



Please no answer like "this one is better", ideally someone that would have use the two frameworks recently.


Answer



symfony2 is not out yet. it's no more preview but its still beta.




to point 2; depends whats your limits in php (e.g. memory limit) symfony has by the way a nice caching strategy, so it shouldn't be a problem.



as you mentioned, theres no answer like "a or b is better". but you should check if you are able to run those frameworks on your shared host (sometimes its a bit bitchy to set up symfony on shared hosts).


No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...