mrcgrtz / hyperion

Meta data to JSON.

Home Page:https://packagist.org/packages/marcgoertz/hyperion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hyperion

Meta data ▶️ JSON

Packagist Version Packagist PHP Version Support Packagist License

Super-simple meta data fetching using php-ogp and php-mf2.

Installation

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.

Usage

<?php

use Marcgoertz\Hyperion\Parser;

$hyperion = new Parser('https://example.com/');
if ($hyperion->hasMetadata()) {
    print $hyperion->toJSON();
}

License

WTFPL © Marc Görtz

About

Meta data to JSON.

https://packagist.org/packages/marcgoertz/hyperion

License:Do What The F*ck You Want To Public License


Languages

Language:PHP 100.0%