[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/externals/httpful/examples/ -> github.php (source)

   1  <?php
   2  // XML Example from GitHub
   3  require (__DIR__ . '/../bootstrap.php');
   4  use \Httpful\Request;
   5  
   6  $uri = 'https://github.com/api/v2/xml/user/show/nategood';
   7  $request = Request::get($uri)->send();
   8  
   9  echo "{$request->body->name} joined GitHub on " . date('M jS', strtotime($request->body->{'created-at'})) ."\n";


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1