Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP OOP Getting started [closed]

Tags:

object

oop

php

I have always been "scared" of OOP, i understand the classes, functions and constructors as I use classes in a java based language called Processing at University.

However, I am unsure how to go about adopting OOP into the code I use, could someone please direct me to a good some good tutorials where I can learn about it. I'm really interested in web technologies and always use PHP for backend processing but I would like to also improve my knowledge of it as I belive I am at the stage where I can progress to more advanced things... such as OOP.

Thanks

like image 659
nmyster Avatar asked Apr 13 '11 08:04

nmyster


4 Answers

I would start with reviewing the PHP manuals pages on OOP. Then maybe consider investigating design patterns.

like image 103
Treffynnon Avatar answered Oct 18 '22 19:10

Treffynnon


I could recommend this books:

PHP Objects and Patterns

PHP Object-Oriented Solutions

also you can invest in some good video tutorials like lynda.com's PHP Beyond Basics:

PHP Beyond Basics

like image 30
Headshota Avatar answered Oct 18 '22 19:10

Headshota


If you understand the basics of OOP, you are at the point to start learning about design patterns. A book like "Head First Design Patterns" from O'Reilly, will get you started.

like image 25
tvlooy Avatar answered Oct 18 '22 21:10

tvlooy


As in any language it's important to get familiar with design patterns. Some are very practical and are used constantly to tackle and approach typical problems.

Although you could do an easy search on "php design patterns", this one coverts some basic patterns which are used often.

Besides the above, I'd just like to say that you have to start using OOP! I believe that experience is a very, very important aspect of learning OOP, and to use it correctly in every situation.

like image 1
Wesley van Opdorp Avatar answered Oct 18 '22 19:10

Wesley van Opdorp