PHP Event-Listener best-practice implementation
Well, there’s really three different ways of doing this from an implementation perspective (note that these are OO design patterns, but you could implement them functionally or procedurally if you wanted to). 1. Observer Pattern You can implement the Observer Pattern. Basically, you’d have each thing that can raise events be a subject. Then the … Read more