Back to Browse

Open Closed Principle in PHP | SOLID Principles in PHP | Episode 03

36 views
Apr 21, 2026
9:38

In this video, we are learning Open Closed Principle in PHP with a practical PHP example. In this tutorial, you will learn: - what Open Closed Principle means in PHP - why classes should be open for extension but closed for modification - how to build an exporter contract for different report formats - how to add new behavior with new classes instead of changing existing code - how abstractions keep services stable and reusable - how to run and verify the output from the terminal Series: SOLID Principles in PHP Episode: 03 Next video: Liskov Substitution Principle in PHP If you found this video helpful, like, share, comment, and subscribe to LearnWebCoding for future updates. #PHP #OpenClosed #LearnWebCoding Share, Support, Subscribe!!! Youtube: https://www.youtube.com/learnWebCoding Facebook: https://www.facebook.com/learnWebCoding Blog: http://learn-web-coding.blogspot.com/ GitHub: https://github.com/durgesh-sahani Connect with Me: Linkedin: https://www.linkedin.com/in/durgesh-sahani Facebook: https://www.facebook.com/durgeshsahani99 Instagram: https://www.instagram.com/durgeshsahani_/ Twitter: https://twitter.com/durgeshsahani99

Download

1 formats

Video Formats

360pmp45.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Open Closed Principle in PHP | SOLID Principles in PHP | Episode 03 | NatokHD