SitePoint Sponsor

User Tag List

Results 1 to 20 of 20
  1. #1
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Are there any good books on PHP 5 and MVC

    Hey everyone,

    I want to learn more about php 5 and the MVC framework. I currently code in PHP 4 so can anybody suggest good books i can look at or buy?

    Thanks
    Software Engineer ASP, ASP.NET, VB, PHP

    Kind regards
    Billy

  2. #2
    SitePoint Addict Mal Curtis's Avatar
    Join Date
    Jul 2009
    Location
    New Zealand
    Posts
    327
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    MVC isn't a framework, it's a methodology - so it's more of a 'concept' than any actual code.

    Regarding book options, I'm not so sure regarding MVC sorry.

  3. #3
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,147
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    Do you have any experience in object oriented program in PHP or some other language? If you lack experience in that area than your going to have a difficult time grasping MVC and customizing such architecture to your needs. So rather than looking for a book about the MVC PHP architecture it would be best to look into object-oriented programming books instead.

  4. #4
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To be honest, i dont have any OOP experience at all. I have developed websites in PHP and ASP.NET but i have used procedural programming. However i realize it is important to separate and minimize the use of PHP on a page, and have been researching ways to become better in what i do.

    A few other developers advised me to go with OOP and try to get to grips with the MVC methodology.

    Currently i code using PHP 4, so i would need to understand PHP 5. I was thinking it may be better to learn how to OO code in PHP 5.

    So are there any books which would help me do this?

    Forget the MVC stuff, i can pick this up as i go along :-)

    Thanks for your help
    Software Engineer ASP, ASP.NET, VB, PHP

    Kind regards
    Billy

  5. #5
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or would it be better to learn php5 first and then object oriented programming?
    Software Engineer ASP, ASP.NET, VB, PHP

    Kind regards
    Billy

  6. #6
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I say pick up an OO framework (Symfony is my preference) and start building an app in it. Just by working through the tutorials and building something you'll get a practical understanding of how classes and MVC can be helpful. Reading books will tell ya lots about what OOP is and give you some generic examples, but you'll still be stumped on when it *helps* you to use them in a *web* application.

  7. #7
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well i want to build an e-commerce website, but i would prefer to hard code most of it myself. I'm not trying to reinvent the wheel but i want to understand how it all works

    I have just been looking at Symphony, would i be able to build an e-commerce web application using this framework?

    Thanks
    Software Engineer ASP, ASP.NET, VB, PHP

    Kind regards
    Billy

  8. #8
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Matt Zandstra's PHP Objects, Patterns and Practice is excellent. As is Dagfinn Reiersol's PHP in Action: Objects, Design, Agility. IMO, if you want to learn things like MVC, OOP, Design Patterns etc, don't use a Framework - at least not to build anything.

    Build the objects, learn the patterns, create a framework. Only then will you know why these frameworks exist and why they are built the way they are. It's one thing becoming proficient in say, Zend, Symfony, CI, Kohana or Cake - anyone can read the documentation and build an application. The real developers, the ones you want to hire, are the ones who know why they have view helpers, event notifiers, etc... If you know why they have them, you know when to use them to solve a particular problem, because that's what we do. Developers solve problems.

    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  9. #9
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Anthony,

    I am actually taking a course on PHP, and was thinking of looking at Zend, taking it all apart and changing stuff

    Lets see how i get on..

    Thanks for the books, do these look at PHP 5 and OOP?
    Software Engineer ASP, ASP.NET, VB, PHP

    Kind regards
    Billy

  10. #10
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by billy_111 View Post
    Thanks for the books, do these look at PHP 5 and OOP?
    You're most welcome, they do indeed.

    Good luck with the course!
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  11. #11
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry i missed something,

    IMO, if you want to learn things like MVC, OOP, Design Patterns etc, don't use a Framework - at least not to build anything.
    Did you mean build my own framework? I am not really keen on using an existing framework as i know i wont understand how certain aspects work. Instead i think it would be better to build something that I understand.

    Would these books help me do this? Bdw, this book http://www.amazon.co.uk/gp/product/143022925X hasn't been printed yet

    Thanks
    Software Engineer ASP, ASP.NET, VB, PHP

    Kind regards
    Billy

  12. #12
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Yeah, sure they would. If memory serves, Matt Zandstra's book walks you through the creation of one.

    That link is to the 3rd edition, the 2nd edition is just fine.
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  13. #13
    SitePoint Wizard frank1's Avatar
    Join Date
    Oct 2005
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I study lots of ebooks.
    There are lots of books and videos on PHP5 and MVC
    To start
    Apress PHP AND MYSQL does use MVC.
    Creating practical web 2.0 application
    There are around 2 books on Cakephp from apress and 1 from packt
    There are around 3 books on zend framework(read till now)
    There are numerous videos of mvc(one on phptutorials.com i guess,but not free)
    Packt book on Object Oriented PHP has last MVC chapter that makes blog in MVC framework

    so lots of book i guess....if you are looking for any specific...i think i can remember that as well

  14. #14
    SitePoint Member
    Join Date
    Mar 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for all the great tips

    I just finished reading "Build Your Own Database Driven Web Site Using PHP & MySQL, 4th Edition", and it did a really good job of getting me ramped up in a few weeks on the basics.

    Whats a good next step for me? As I look at CakePhp or Rails or anything thats going to take me closer to developing my own webapps, they all seem to require an understanding of object oriented programming?

    Any more suggestions on where to from the sitepoint book I just finished?

  15. #15
    SitePoint Addict dnordstrom's Avatar
    Join Date
    Jul 2006
    Location
    Amsterdam
    Posts
    337
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AnthonySterling View Post
    Matt Zandstra's PHP Objects, Patterns and Practice is excellent.
    I agree, this is a good one. I also agree with the poster that suggested building an app in a framework such as CodeIgniter and Zend.

    Recess Framework doesn't have as much features as the previously mentioned but is fun to use, very recommended.
    Daniel Nordstrom. of. Nintera(ctive)
    -- Featured post: Part 2. Writing NI.JS JavaScript
    ----- Follow me on Twitter. Got project? Contact me.
    -------- SitePoint: Community Guidelines Be A Great Member

  16. #16
    SitePoint Wizard frank1's Avatar
    Join Date
    Oct 2005
    Posts
    1,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by evbart View Post
    Thanks for all the great tips

    I just finished reading "Build Your Own Database Driven Web Site Using PHP & MySQL, 4th Edition", and it did a really good job of getting me ramped up in a few weeks on the basics.

    Whats a good next step for me? As I look at CakePhp or Rails or anything thats going to take me closer to developing my own webapps, they all seem to require an understanding of object oriented programming?

    Any more suggestions on where to from the sitepoint book I just finished?
    if you really planning in the sequence,
    then go for lynda php beyond the basic video tutorials....
    then get either cakephp or codeigniter book
    then move to zend
    symfony at last.....

  17. #17
    SitePoint Zealot romance's Avatar
    Join Date
    Apr 2004
    Location
    UK
    Posts
    181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AnthonySterling View Post
    Matt Zandstra's PHP Objects, Patterns and Practice is excellent.
    Thirding this, great book.

  18. #18
    SitePoint Zealot bopjo1's Avatar
    Join Date
    Jun 2007
    Location
    Tampa, FL
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am in the same boat - programming with php4 and looking to advance to learning php5.3, OOP and the MVC structure.

    This book covers ALL those topics very well, and is geared towards people at our level. The MVC structure is explained from the very beginning in a simple, clear, uncomplicated way, and all the apps you build in the book are built with the MVC structure.

    http://www.amazon.com/gp/product/189...ef=oss_product

  19. #19
    SitePoint Member kyos's Avatar
    Join Date
    Feb 2011
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by billy_111 View Post
    To be honest, i dont have any OOP experience at all. I have developed websites in PHP and ASP.NET but i have used procedural programming. However i realize it is important to separate and minimize the use of PHP on a page, and have been researching ways to become better in what i do.

    A few other developers advised me to go with OOP and try to get to grips with the MVC methodology.

    Currently i code using PHP 4, so i would need to understand PHP 5. I was thinking it may be better to learn how to OO code in PHP 5.

    So are there any books which would help me do this?

    Forget the MVC stuff, i can pick this up as i go along :-)

    Thanks for your help
    I have a question, and please ignore my ignorance, but how is that you're programming in ASP.NET and still have no OOP knowledge? AFAIK in ASP.net you can use different languages supported by the .NET FRAMEWORK which will make you know OOP even if you don't want to, so how do you only use procedural programming in ASP.NET? (no offense, I'm just curious about that)

    here, http://www.amazon.com/s?ie=UTF8&rh=n...c%20php&page=1 you can have a god list of books that will teach you OOP, PHP, Design Patterns, etc...

  20. #20
    SitePoint Enthusiast
    Join Date
    Dec 2006
    Location
    Dubrovnik, Croatia
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry for late posting but one of the best books on OOP :

    Head First Design Patterns for beginners it is something you must read!!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •