Swiftech
Results 1 to 9 of 9

Thread: Recommendation wanted: OO PHP manual/book

  1. #1
    Xtreme Enthusiast s1nykuL's Avatar
    Join Date
    Oct 2007
    Location
    Mid UK. Lift a few rocks, eventually you will find me.
    Posts
    666

    Recommendation wanted: OO PHP manual/book

    I learned 'C' by reading Kernighan and Ritchies "The C Programming Language" Book. IMHO it has to be the best resource for learning procedural 'C' programming.

    I have taught myself procedural PHP coding from various online tutorials and although I still have a lot more to learn I want to master OO programming in PHP. Is there a definitive OO PHP publication written in the same style as the Kernighan and Ritchie book?

    If not can someone recommend a book that is recognised as the defacto standard for OO PHP. I do understand the principals behind OO programming but have yet to write a single line of OO code.
    Fun Box: Asus P8Z68-V GEN3++Corsair AX850++i5 2500k@4.5Ghz-1.272v++Corsair A50++2x8Gb Corsair Vengeance++MSI R7970 Lightning++Audigy2 Plat-EX++TBS 6280 DVB-T2 tuner++256Gb OCZ Vertex 4.500Gb Caviar Black.500Gb Seagate Barracuda++Sony AD7240s++Lian-Li PC-60++Linux Mint/Win 7++Asus P238Q

    Work Box: Gigabyte H61MA-DV3++Corsair HX620++i5 3450@stock++2x8Gb Corsair Vengeance++120Gb OCZ Agility 3++Linux Mint

    Quantum theory in a nutshell: It's so small we don't know where it is, it could be here, it could be there.

    Just 'cos it's legal don't make it right.

  2. #2
    Xtreme Member desnudopenguino's Avatar
    Join Date
    Aug 2009
    Location
    Somewhere
    Posts
    220
    http://php.net/manual/en/language.oop5.php The docs for php online are a good start before you drop some cash on a book. This is the only source I've used for OO PHP. The documentation for PHP is really good online, and the examples users have included along with the official documentation really helps make things clear. I don't think there is anything in print, and probably online as well, that equals the K&R book in respect to OO PHP. PHP is a good language to move from procedural to object oriented programming as it supports both styles of coding.
    Last edited by desnudopenguino; 10-11-2011 at 08:18 AM.

    Desktop (and Cruncher #1):AMD Phenom II x6 1090T @ 4.03Ghz | Gigabyte MA790FXT-UD5P (F8n) | G.Skill Ripjaws 2x4GB @ 9-9-9-24-1T 1680MHz | Radeon HD 5850 & 5830 | Silverstone ST75F 750W | 60GB OCZ Vertex 2 3x1TB WD RE3 (Raid 5) | Lian Li PC-A70B
    Cruncher (#2): Intel Core I7 920 (stock) | EVGA X58 SLI | G.Skill Pi 3x2GB | 2x Radeon HD 6870 | Corsair HX850 | Some Janky HDD | LanCool PC-K7
    Cruncher (#3): Intel Core I7 2600k (stock) | BioStar TH67+ | G.Skill Ripjaws 2x4GB | Antec Basiq550 | Some Janky HDD | Antec 300
    Server: Intel Atom | 2x2GB DDR3 | ThermalRight TR2-430 | Some Less Janky Laptop HDD | Fractal Core-1000
    Mobile: Lenovo X120e

  3. #3
    Xtreme Enthusiast s1nykuL's Avatar
    Join Date
    Oct 2007
    Location
    Mid UK. Lift a few rocks, eventually you will find me.
    Posts
    666
    Thanks desnudopenguino, I was aware of this site, I used it for much of my insights into procedural PHP it is a very good resource. I just never thought of finding out about OO PHP from it, my intelligence is only equaled by my capacity for being dumb.

    Cheers
    Fun Box: Asus P8Z68-V GEN3++Corsair AX850++i5 2500k@4.5Ghz-1.272v++Corsair A50++2x8Gb Corsair Vengeance++MSI R7970 Lightning++Audigy2 Plat-EX++TBS 6280 DVB-T2 tuner++256Gb OCZ Vertex 4.500Gb Caviar Black.500Gb Seagate Barracuda++Sony AD7240s++Lian-Li PC-60++Linux Mint/Win 7++Asus P238Q

    Work Box: Gigabyte H61MA-DV3++Corsair HX620++i5 3450@stock++2x8Gb Corsair Vengeance++120Gb OCZ Agility 3++Linux Mint

    Quantum theory in a nutshell: It's so small we don't know where it is, it could be here, it could be there.

    Just 'cos it's legal don't make it right.

  4. #4
    Xtreme Addict El Mano's Avatar
    Join Date
    Mar 2010
    Posts
    1,052
    May I ask why OO PHP?
    Java is also a nice language for dynamic web content.

  5. #5
    Xtreme Addict El Mano's Avatar
    Join Date
    Mar 2010
    Posts
    1,052
    May I ask why OO PHP?
    Java is also a nice language for dynamic web content.

  6. #6
    Xtreme Legend
    Join Date
    Jan 2003
    Location
    Stuttgart, Germany
    Posts
    930
    most people use OO PHP to keep their source code more readable and capsulated. i rarely see hardcore OO concepts. If you are already good with procedural PHP, read the PHP OO docs, start using OO for capsulation in your next project, and keep going back to the docs to solve specific issues

  7. #7
    Xtreme Enthusiast s1nykuL's Avatar
    Join Date
    Oct 2007
    Location
    Mid UK. Lift a few rocks, eventually you will find me.
    Posts
    666
    Quote Originally Posted by El Maño View Post
    May I ask why OO PHP?
    Java is also a nice language for dynamic web content.
    Curiosity and research as to whether OO php is better for the kind of Web applications I will be developing... re-useability of classes mainly. However, well constructed functions can be used across various projects without the need for classes. I have never coded OO in any language so it is a learning exercise more than anything.
    Fun Box: Asus P8Z68-V GEN3++Corsair AX850++i5 2500k@4.5Ghz-1.272v++Corsair A50++2x8Gb Corsair Vengeance++MSI R7970 Lightning++Audigy2 Plat-EX++TBS 6280 DVB-T2 tuner++256Gb OCZ Vertex 4.500Gb Caviar Black.500Gb Seagate Barracuda++Sony AD7240s++Lian-Li PC-60++Linux Mint/Win 7++Asus P238Q

    Work Box: Gigabyte H61MA-DV3++Corsair HX620++i5 3450@stock++2x8Gb Corsair Vengeance++120Gb OCZ Agility 3++Linux Mint

    Quantum theory in a nutshell: It's so small we don't know where it is, it could be here, it could be there.

    Just 'cos it's legal don't make it right.

  8. #8
    Xtreme Enthusiast s1nykuL's Avatar
    Join Date
    Oct 2007
    Location
    Mid UK. Lift a few rocks, eventually you will find me.
    Posts
    666
    Quote Originally Posted by W1zzard View Post
    most people use OO PHP to keep their source code more readable and capsulated. i rarely see hardcore OO concepts. If you are already good with procedural PHP, read the PHP OO docs, start using OO for capsulation in your next project, and keep going back to the docs to solve specific issues
    This is what I plan to do, write procedurally and make use of OO constructs where I feel the project will benefit. After completing my first web app, I now have much more insight as to how php/java/html/jquery work together to render a page and respond to user input. Things are getting easier as I don't have to look up the synopsis of php and Javascript functions nearly as much as I had to at the outset.
    Fun Box: Asus P8Z68-V GEN3++Corsair AX850++i5 2500k@4.5Ghz-1.272v++Corsair A50++2x8Gb Corsair Vengeance++MSI R7970 Lightning++Audigy2 Plat-EX++TBS 6280 DVB-T2 tuner++256Gb OCZ Vertex 4.500Gb Caviar Black.500Gb Seagate Barracuda++Sony AD7240s++Lian-Li PC-60++Linux Mint/Win 7++Asus P238Q

    Work Box: Gigabyte H61MA-DV3++Corsair HX620++i5 3450@stock++2x8Gb Corsair Vengeance++120Gb OCZ Agility 3++Linux Mint

    Quantum theory in a nutshell: It's so small we don't know where it is, it could be here, it could be there.

    Just 'cos it's legal don't make it right.

  9. #9
    Xtreme Enthusiast s1nykuL's Avatar
    Join Date
    Oct 2007
    Location
    Mid UK. Lift a few rocks, eventually you will find me.
    Posts
    666
    My very first php application is now live, I have tested it to the point risking my sanity. It has to be secure and at this stage it seems to be. I have have tried every injection and XXS attack I can think of and the app is secure.... Until that is someone smarter than me comes along and shows me how lacking in these skills I actually am. I reckon in another 12 months I might just actually understand what I am doing ;-)

    I am not going to post a link to the site here, but if anyone is interested in what my first php web app looks like, PM me and I will send a link. Before I started this, I hadn't written a single line of php or used MySQL, although I had built several html sites. This project was my introduction to PHP and MySQL and my client was aware of this.
    Fun Box: Asus P8Z68-V GEN3++Corsair AX850++i5 2500k@4.5Ghz-1.272v++Corsair A50++2x8Gb Corsair Vengeance++MSI R7970 Lightning++Audigy2 Plat-EX++TBS 6280 DVB-T2 tuner++256Gb OCZ Vertex 4.500Gb Caviar Black.500Gb Seagate Barracuda++Sony AD7240s++Lian-Li PC-60++Linux Mint/Win 7++Asus P238Q

    Work Box: Gigabyte H61MA-DV3++Corsair HX620++i5 3450@stock++2x8Gb Corsair Vengeance++120Gb OCZ Agility 3++Linux Mint

    Quantum theory in a nutshell: It's so small we don't know where it is, it could be here, it could be there.

    Just 'cos it's legal don't make it right.

Posting Permissions

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