marcgoertz/hyperion

Meta data to JSON.

dev-main 2024-09-23 10:46 UTC

This package is auto-updated.

Last update: 2024-10-23 11:04:40 UTC


README

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