scratch

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 86  →  ?path2? @ 87
/vendor/fusonic/opengraph/examples/consume_website.php
@@ -0,0 +1,15 @@
<?php
 
if (!$loader = @include __DIR__.'/../vendor/autoload.php') {
die('You must set up the project dependencies, run the following commands:'.PHP_EOL.
'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
'php composer.phar install'.PHP_EOL);
}
 
// Create a new crawler
$crawler = new Fusonic\OpenGraph\Consumer();
 
// Crawl the desired URL and retrieve a Fusonic\OpenGraph\Object in response
$object = $crawler->loadUrl("https://github.com");
 
var_dump($object);