marcgoertz / hyperion
Meta data to JSON.
dev-main
2024-11-18 19:53 UTC
Requires
- php: >=7.3
- mapkyca/php-ogp: ^1.1.0
- masterminds/html5: ^2.7.4
- mf2/mf2: ^0.5.0
Requires (Dev)
- squizlabs/php_codesniffer: ^3.6.0
This package is auto-updated.
Last update: 2024-11-18 19:54:49 UTC
README
Meta data ▶️ JSON
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