You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
512 B

<?php
namespace p3k;
class XRay {
public $http;
public function __construct() {
$this->http = new HTTP();
}
public function rels($url, $opts=[]) {
$rels = new XRay\Rels($this->http);
return $rels->parse($url, $opts);
}
public function parse($url, $opts=[]) {
$fetch = new XRay\Fetch($this->http);
$response = $fetch->fetch($url, $opts);
return $this->parse_doc($response, $url, $opts);
}
public function parse_doc($response, $url=false, $opts=[]) {
}
}