PHP code example of shevabam / php-extract-meta-url
1. Go to this page and download the library: Download shevabam/php-extract-meta-url library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
shevabam / php-extract-meta-url example snippets
= 'https://www.gadgets360.com/science/news/blue-origin-jeff-bezos-new-shepard-ns-23-nasa-3339832';
$x = new \PhpExtractMetaUrl\PhpExtractMetaUrl($url);
$x->setFormat('array'); // default: json
$result = $x->extract();
echo '<pre>';
print_r($result);