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.

22 lines
379 B

  1. <?php
  2. namespace p3k;
  3. class XRay {
  4. public $http;
  5. public function __construct() {
  6. $this->http = new HTTP();
  7. }
  8. public function rels($url, $opts=[]) {
  9. $rels = new XRay\Rels($this->http);
  10. return $rels->parse($url, $opts);
  11. }
  12. public function parse($url, $opts=[]) {
  13. $parser = new XRay\Parser($this->http);
  14. return $parser->parse($url, $opts);
  15. }
  16. }