Class Parser
Parses BeerXML 1.0 files into PHP record classes
<?php $parser = new \BeerXML\Parser(); $result = $parser->parse(file_get_contents('http://www.beerxml.com/recipes.xml')); foreach ($result as $recipe) { echo "Found beer recipe " . $recipe->getName() . "\n"; }