PHP MVC Framework

Discussion in 'PHP' started by sojic, Dec 13, 2008.

  1. #1
    Does anybody user php MVC framework?

    I need your experiences. Why Zend, why not Code Ingiter.... or something like that.
     
    sojic, Dec 13, 2008 IP
  2. brownskinman

    brownskinman Peon

    Messages:
    18
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try Kohana or CakePHP.

    I had a quick look at ZF about 2/3 months ago, but I guess I'm really too lazy to type such long classnames hehe
     
    brownskinman, Dec 13, 2008 IP
  3. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #3
    CodeIgniter for sure,
    it's the most nicer and easy to use
    also it's very popular
     
    crivion, Dec 13, 2008 IP
  4. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #4
    Zend is nice and all, and it makes development exteremely fast once you get it off the ground. Only downsides I found was the form component got annoying at times with styling and it was a resource hog.

    @brownskinman
    The long class names are perfectly logical, and as you would be a programmer it should take only a split second for you to type. You must be really lazy, lol. But if you're lazy in that aspect, i'd be scared to see what other critical aspects you'd be lazy with in code.
     
    chopsticks, Dec 13, 2008 IP
  5. sojic

    sojic Active Member

    Messages:
    133
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    90
    #5
    I use Code Igniter. Zend is to complicated. Code igniter use less memory...

    What about another frameworks?

    Any experiences?
     
    sojic, Dec 14, 2008 IP
  6. risoknop

    risoknop Peon

    Messages:
    914
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I use my own MVC framework. The greatest advantage is that I have coded it from ground so I know the source inside out which makes debugging much easier.

    The downside might be that it's quite simple so it doesn't have so much functionality out-of-box. However, that might also be an advantage - it is easy to add new funcionality and it is light on resources.

    If you want to go with some robust and experienced framework, I would probably recommend Symfony or Zend. If you want something ligther, Kohana might be worth looking at.
     
    risoknop, Dec 14, 2008 IP
  7. geekranger

    geekranger Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    why not sympony?
     
    geekranger, Dec 16, 2008 IP
  8. herbacious

    herbacious Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    im going to get into ZF

    so much momentum behind it i think its the one to learn if you are going to learn any of them
     
    herbacious, Dec 19, 2008 IP
  9. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #9
    Do you employ many singletons throughout it? Do you use PDO for access to database, or just the "other" way?
     
    chopsticks, Dec 19, 2008 IP
  10. risoknop

    risoknop Peon

    Messages:
    914
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I don't use singleton design pattern at all.

    For database access, I use PDO, wrapped in my own more or less abstracion class.
     
    risoknop, Dec 21, 2008 IP
  11. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #11
    Ahh cool.

    Thought you maybe would of used a singleton for the Authentication object, or something else.
     
    chopsticks, Dec 21, 2008 IP
  12. risoknop

    risoknop Peon

    Messages:
    914
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Well, to be honest I usually work only on small projects/websites so I have a full contol over the code and I can make sure there is only one instance of object just by carefully writting code, that's why I don't use singleton.

    But of course, in case I was working with several other developers or on a larger project, I would certainly implement it in classes that need it. It's difficult to make sure there is only one instance of the object when the code grows so huge so singleton is absolutely neccessary there.
     
    risoknop, Dec 23, 2008 IP
  13. OinkOink

    OinkOink Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Personally I use Code Igniter and I would highly recommend it. I haven't really used other frameworks.
     
    OinkOink, Dec 23, 2008 IP
  14. Greg Carnegie

    Greg Carnegie Peon

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I would say forget garbage like CodeIgniter and cakePHP. Why? Because despite they are easy to use and learn they choose to remain compatible with PHP4 which is dead. So both of this frameworks are pretty much outdated, sure code written with them will probably still work with on shared hosts, but in my opinion choosing them RIGHT NOW is a wrong step.

    So basically your choice is limited to 3 or 4 options. Kohana which is CodeIgniter but written in PHP5 however it lacks documentation and tutorials so it would be hard to begin with, Symfony by far the most advanced framework which generates a lot of code for you. Zend Framework, which is actually not a framework because it is merely a set of class that allows you to build your framework.

    Other good ones would be Agavi and Prado i do not know about them so you have to check them out by yourself.

    Ultimately it all comes down to this: You have to download all the frameworks and test them, if someone claims that XXX framework is best that does not mean it will be also best for you. So play with them for a while and see which one resonates with you.

    P.S. If you would like to get a job as a PHP programmer then keep in mind that companies are looking for programmers who are good with either Zend Framework or Symfony, so if that's the case then your choice is limited to this two frameworks.
     
    Greg Carnegie, Dec 23, 2008 IP
  15. cyno

    cyno Peon

    Messages:
    12
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    I've played with prado during one year. This framework is quite interesting (component driven such as .net). It is a very good framework when you are rendering HTML and AJAX. Unfortunately I'm not sure that all the scaling issues are solved (I have not tried the caching system). I think this is a good framework for small sites and company sites.

    I am currently developing with Zend framework. This is a different approach, all modules are clearly separated (no dependencies). Thus you are free to use only the database abstraction or specific service helpers. The community is already big and each release brings cool stuff. Problem is there is not a good "view" layer for HTML. In my case this is not a problem because we are 99% flash (by the way Zend_Amf is great).
     
    cyno, Apr 13, 2009 IP
  16. antigravity

    antigravity Active Member

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #16
    I've built production projects with symfony. When we were deciding which framework to choose, it seemed symfony had the best documentation and right out of the box it was easy, powerful, and a joy to work with in eclipse.

    Would have preferred another db layer to propel... but I understand Doctrine is usable now, and that sounds interesting.

    Give symfony a try... it's easy enough that you can do a quick something to see if you like it and fail fast if you don't... but I think you'll like it.
     
    antigravity, Apr 13, 2009 IP
  17. sumit723

    sumit723 Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Hello,

    I have expertise in cake php which is also a MVC framework and it's very popular now a days, if interested please email me with the details.

    Regards
    Sumit
     
    sumit723, Apr 14, 2009 IP
  18. manly_ninja

    manly_ninja Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    If you use many libraries, use many advanced techniques (SOAP, XML-RPC, Web Service), I recommend you use Zend Framework.

    If you like simple MVC Framework, I think Code Igniter is the best choice (its tutorials is very good, easy to learn)

    You can try to use CakePHP, Symfony ... if you like them.
     
    manly_ninja, Apr 15, 2009 IP