Structuring Larger OOP Plugins
As a WordPress plugin grows, structure decides whether it stays maintainable or calcifies. Key techniques for scaling: splitting code into reusable Composer libraries and using dependency injection to decouple from specific implementations. Assumes basic OOP familiarity.
As the plugins you develop grow bigger, you need to spend more effort on getting the structure just right, to keep the plugin maintainable and easily extensible.
This session will briefly go over several key concepts of dealing with growing plugins, like using Composer to split your plugins into multiple reusable libraries or using a dependency injector to make the code independent of any specific implementations.
The session assumes knowledge of basic OOP principles and is an unofficial follow-up to the session “OOP Plugin Development Basics” held at WordCamp Nijmegen 2017.