Skip to content

Instantly share code, notes, and snippets.

@jonnybarnes
Created February 20, 2014 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonnybarnes/9111718 to your computer and use it in GitHub Desktop.
Save jonnybarnes/9111718 to your computer and use it in GitHub Desktop.
<?php
include('../vendor/mf2/mf2/Mf2/Parser.php');
use \Mf2;
$html = file_get_contents('http://localhost/notes-id.html');
$mfJSON = new \Mf2\parse($html);
var_dump($mfJSON);
//outputs Fatal error: Class 'Mf2\parse' not found in /Users/jonny/git/jbl4/public/test.php on line 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment