PHP - Advanced Programming Techniques (PHP2)
Programming, Web Programming
This course presents the PHP platform in full power, teaching how to design and organize large projects with clear OOP, proper code structure and design patterns. You will learn modern techniques for secure web applications with admin panels.
The course also covers working with images and databases, sending emails and creating PDFs, plus using web services for sending and receiving data. Practical tips on input validation, SQL and XSS protection are included.
Location, current course term
Contact us
The course:
Hide detail
-
Introduction to OOP - basics and syntax
-
Creating classes and properties; encapsulation - public, protected, private
-
Creating and using fluent interfaces - method chaining
-
Constants, static properties and methods; static usage patterns
-
Magic methods: __construct, __destruct, autoload, __clone, isset/unset, __toString
-
Magic accessors and invokers: __get, __set, __call, __callStatic
-
Class inheritance: extends, implements, abstract and final
-
Creating class patterns and using instanceof checks
-
Namespaces: purpose, syntax and best practices
-
OOP - common PHP design patterns
-
Avoiding spaghetti code with clear structure
-
MVC (Model-View-Controller) - correct separation of responsibilities
-
Adapter pattern - adapt an object to behave like another
-
Singleton pattern - ensure a single unique instance
-
Factory pattern - creating objects inside other classes
-
OOP - additional practical techniques
-
Doc comments for automatic documentation and tooling
-
Standard PHP Library (SPL) - core functions and interfaces
-
ArrayObject and related structures
-
Iterator interfaces - accessing objects like arrays
-
Autoloading - project structure for autoloading and usage
-
Exceptions
-
try, catch, throw constructs and handling flow
-
Exception hierarchy and targeted catching
-
Regular expressions and security
-
What regular expressions are and their uses
-
Literals and special characters
-
Modifiers and quantifiers
-
Character classes and sets
-
Using match and replace functions
-
Sanitizing user input; preventing SQL injection and XSS
-
Testing
-
Introduction to testing and reasons for automated tests
-
Automated vs manual testing principles
-
Unit testing vs integration testing
-
Mocking techniques
-
Using PHPUnit for practical tests
-
Assumed knowledge:
-
Basic PHP knowledge and abstract thinking; use Windows or Mac; familiarity with C‑family languages is advantageous.
-
Recommended previous course:
-
PHP – Introduction to Programming (PHP1)
-
Schedule:
-
2 days (9:00 AM - 5:00 PM )
-
Course price:
-
316.00 € ( 382.36 € incl. 21% VAT)
-
Language:
-
Vybrané zákaznické reference
Státní úřad inspekce práce, Petr J.
PHP - Advanced Programming Techniques (
PHP2)
"Úvod do práce s OOP v PHP."
NEWPS.CZ s.r.o., Lukáš E.
PHP - Advanced Programming Techniques (
PHP2)
"Perfektní, nemělo chybo."
Masarykova univerzita, Rudolf N.
PHP - Advanced Programming Techniques (
PHP2)
"ok"
Masarykova univerzita, Miloš K.
PHP - Advanced Programming Techniques (
PHP2)
"Vše v naprostém pořádku. Děkuji."