scratch – Blame information for rev 87

Subversion Repositories:
Rev:
Rev Author Line No. Line
87 office 1 <?php
2  
3 if (!$loader = @include __DIR__.'/../vendor/autoload.php') {
4 die('You must set up the project dependencies, run the following commands:'.PHP_EOL.
5 'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
6 'php composer.phar install'.PHP_EOL);
7 }
8  
9 // Create a new crawler
10 $crawler = new Fusonic\OpenGraph\Consumer();
11  
12 // Crawl the desired URL and retrieve a Fusonic\OpenGraph\Object in response
13 $object = $crawler->loadUrl("https://github.com");
14  
15 var_dump($object);