-
Notifications
You must be signed in to change notification settings - Fork 5
Output Strategies
lobostome edited this page Mar 18, 2013
·
1 revision
The results from the APIs come in different formats. Most often they are either json or xml. The output strategies let you convert those to objects or arrays. Each provider has concrete strategies, and they are specified on the Providers page.
FurryBear\Output\Strategy\JsonToArray
FurryBear\Output\Strategy\JsonToObject
FurryBear\Output\Strategy\XmlToObject
$output = new FurryBear\Output\Strategy\JsonToObject();
$fb = new FurryBear\FurryBear();
$fb->registerOutput($output);