mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-15 10:00:55 +01:00
9 lines
307 B
PHP
9 lines
307 B
PHP
|
<?php
|
||
|
// XML Example from GitHub
|
||
|
require(__DIR__ . '/../bootstrap.php');
|
||
|
use \Httpful\Request;
|
||
|
|
||
|
$uri = 'https://github.com/api/v2/xml/user/show/nategood';
|
||
|
$request = Request::get($uri)->send();
|
||
|
|
||
|
echo "{$request->body->name} joined GitHub on " . date('M jS', strtotime($request->body->{'created-at'})) ."\n";
|