diff --git a/README.md b/README.md index c58b2af..a10a68a 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ require 'vendor/autoload.php'; $url = 'https://www.gadgets360.com/science/news/blue-origin-jeff-bezos-new-shepard-ns-23-nasa-3339832'; -$x = new \PhpExtractMetaUrl($url); +$x = new \PhpExtractMetaUrl\PhpExtractMetaUrl($url); $x->setFormat('array'); // default: json $result = $x->extract(); diff --git a/composer.json b/composer.json index d34a932..f59435c 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ } ], "license": "GPL-3.0-only", - "version": "1.0.2", + "version": "1.0.3", "minimum-stability": "stable", "require": { "php": ">=7.4.0", diff --git a/src/PhpExtractMetaUrl.php b/src/PhpExtractMetaUrl.php index 1a20877..7a756f2 100644 --- a/src/PhpExtractMetaUrl.php +++ b/src/PhpExtractMetaUrl.php @@ -209,15 +209,3 @@ private function curlGetContent() } - -$url = 'https://blog.shevarezo.fr/post/2022/10/27/textify-copier-texte-normalement-incopiable'; -$url = 'https://github.com/rollbackpt/URLExtractor'; -$url = 'https://korben.info/comment-sauvegarder-un-disque-reseau-nas-vers-backblaze.html'; -$url = 'https://www.gadgets360.com/science/news/blue-origin-jeff-bezos-new-shepard-ns-23-nasa-3339832'; - -$x = new PhpExtractMetaUrl($url); -$x->setFormat('array'); -$result = $x->extract(); - -echo '
';
-print_r($result);