Microformats Parser (PHP) v0.5.0
HTML
<div class="h-event"> <a class="p-name u-url" href="http://indiewebcamp.com/2012"> IndieWebCamp 2012 </a> from <time class="dt-start">2012-06-30</time> to <time class="dt-end">2012-07-01</time> at <span class="p-location h-card"> <a class="p-name p-org u-url" href="http://geoloqi.com/"> Geoloqi </a>, <span class="p-street-address">920 SW 3rd Ave. Suite 400</span>, <span class="p-locality">Portland</span>, <abbr class="p-region" title="Oregon">OR</abbr> </span> </div>
Base URL
Save HTML?
(Note: Data older than 72 hours may be purged)
Render HTML in page?
JSON
{ "items": [ { "type": [ "h-event" ], "properties": { "name": [ "IndieWebCamp 2012" ], "url": [ "http://indiewebcamp.com/2012" ], "start": [ "2012-06-30" ], "end": [ "2012-07-01" ], "location": [ { "type": [ "h-card" ], "properties": { "name": [ "Geoloqi" ], "org": [ "Geoloqi" ], "street-address": [ "920 SW 3rd Ave. Suite 400" ], "locality": [ "Portland" ], "region": [ "Oregon" ], "url": [ "http://geoloqi.com/" ] }, "value": "Geoloqi" } ] } } ], "rels": {}, "rel-urls": {}, "debug": { "package": "https://packagist.org/packages/mf2/mf2", "source": "https://github.com/indieweb/php-mf2", "version": "v0.5.0", "note": [ "This output was generated from the php-mf2 library available at https://github.com/indieweb/php-mf2", "Please file any issues with the parser at https://github.com/indieweb/php-mf2/issues", "Using the Masterminds HTML5 parser" ] } }
Parse