Meta data ▶️ JSON
Super-simple meta data fetching using php-ogp and php-mf2.
I recommend using Composer for installing and using Hyperion:
composer require marcgoertz/hyperion
Of course you can also just require it in your scripts directly.
<?php
use Marcgoertz\Hyperion\Parser;
$hyperion = new Parser('https://example.com/');
if ($hyperion->hasMetadata()) {
print $hyperion->toJSON();
}
WTFPL © Marc Görtz