For quite a while I'm trying to make a plugin system. Googled a lot for some examples which I must say I didn't find and I consider at least someone should write an article with a base example of how things work.
What is a plugin system?
What can you consider a plugin system?
From point of OOP how an implementation would look?
Can someone provide here an example of implementation that anyone can use it further if they find this topic?
From my research over this topic I discovered that Wordpress uses some kind of hook system, but I didn't understand how it changes the html template to output the content there; exactly on the position the user want's or the plugin... like bottom of the page or right sidebar etc.
Then I was thinking if this is only a hook system... why can't I just use an event manager like bind that method to that and trigger it in my controller? The more I've read about it I've became more confused about all of it.