My brain is a bit shot on a Friday afternoon, so need some input 
This is for PHP stuff I'm doing.
I have several data feeds from companies using their API's
I've written a wrapper class that will return their datasets in an array or json. I have 4 classes for 4 data feeds.
Instead of having to call each individually, I want to have a "dispatcher sort of" class which will prepare and load all 4 and give me back 1 full dataset (all 4 combined)
How would you approach this and have it dynamic enough to just add another data feed class and have it, automatically, added to the current system?
I really have no idea where to even begin. Trying to challenge myself and get my PHP skilled up
This is for PHP stuff I'm doing.
I have several data feeds from companies using their API's
I've written a wrapper class that will return their datasets in an array or json. I have 4 classes for 4 data feeds.
Instead of having to call each individually, I want to have a "dispatcher sort of" class which will prepare and load all 4 and give me back 1 full dataset (all 4 combined)
How would you approach this and have it dynamic enough to just add another data feed class and have it, automatically, added to the current system?
I really have no idea where to even begin. Trying to challenge myself and get my PHP skilled up
Last edited: