Description
A one day workshop for PHP programmers without Object Orientation experience, introducing them to the concepts of OO and the PHP5 OO implementation.
Duration
One day
Pre-Requisites
Some PHP experience required.
Basic Overview:
The course provides an overview of object orientation in PHP4, and then delves into the new features and functionality introduced in PHP5. Mention of PHP4 is only made in-case the programmer encounters legacy environments/applications
It then moves on to cover various Object Oriented aspects (What is an Object and syntax?) to inheritance (multiple vs single) and then to interfaces and abstract classes
- Object Oriented programming – the theory
- What objects are
- How do you choose what should be an object?
- Encapsulation / Information Hiding / Coupling and Cohesion
- OO Design
- Very quick overview of Objects in PHP4
- Objects in PHP5 (syntax, exceptions, single inheritance, abstract classes, interfaces)
- Advanced PHP5 specific functionality (magic methods like __get, __set, __call) and pass-by-reference/cloning)
- SPL – The Standard PHP Library – overview of functionality and features
- Common design patterns in PHP
- Model / View / Controller (MVC),
- Strategy,
- Factory,
- Decorator,
- Circuit Breaker
- Singleton,
- Command,
- Observer
- Dependency Injection and DI Container example
- Changes in PHP5.3 (namespaces, anonymous functions and closures)
- 1 hour exercise migrating “legacy” example into an MVC style application using e.g Smarty or the Zend Framework
- 2 hour exercise building a shopping cart using various design patterns and OO principals – the exercise guides the delegate through use of Factory, Singleton, Observer and MVC patterns.
Please contact us for more information or use our information request form.

Pingback: The Circuit Breaker Design Pattern | | Pale Purple