PHP – Object–Oriented Programming (PHPO)

Programming, Web Programming

This course introduces the fundamentals of object-oriented programming and shows how to model real problems in PHP. You will learn to design and implement classes, manage member visibility, and write clearer, modular code.

The course covers inheritance, interfaces and abstract classes, and introduces common design patterns such as Factory and Singleton. You will also study magic methods, autoloading, iteration, and practical type-checking in PHP.

THIS TRAINING COURSE WILL HELP YOU:

  • Understand core OOP concepts in PHP
  • Create and use classes, properties, and methods
  • Implement inheritance, interfaces, and design patterns
  • Use magic methods, autoloading, and type checking

WHO SHOULD ATTEND?

  • Beginner to intermediate PHP developers
  • Web developers moving to OOP PHP
  • Developers maintaining PHP applications

COURSE LOCATION AND AVAILABLE DATES



Public courses are usually delivered in Czech, but this course is also available in English. We can arrange private training for your team online, at your premises or in our classrooms, and tailor the content to your needs.

For groups of around 4 or more participants, private training can already be comparable in price to booking individual places on a public course. Send us your requirements and we’ll recommend the best format and provide an exact quote.

Request training in English

Course content:

Hide details
  • Review of PHP and MySQL basics
  • OOP basics - definition of object-oriented programming (OOP)
  • Inheritance
    1. Creating classes
    2. Applying inheritance
  • Visibility
    1. Attributes (properties)
    2. Methods (public, protected, private)
  • Static properties and methods, the final keyword - protecting parent classes
  • Special methods
    1. Destructors
    2. Constructors and cloning
    3. Autoloading - automatic class loading
  • Object constants, the double-colon operator - scope operator
  • Interfaces and abstract classes
    1. Interface as a template
    2. Abstract class - definition and characteristics
  • Factory pattern - creating objects inside other classes
  • Singleton pattern - ensuring a unique instance
  • Overloading - definition and usage
  • Iteration - accessing objects like arrays
  • Type checking - definition and usage
  • Comparison and identity, magic methods - definition and usage
  • The instanceof operator - definition and usage
  • Object dereferencing - definition and usage
  • Functions for working with objects and OOP
Prerequisites:
Basic knowledge of PHP and MySQL.
Schedule:
2 days (9:00-17:00)

Training and learning environment