mirror of
https://github.com/Findus23/HNReader.git
synced 2024-09-19 15:23:44 +02:00
14 lines
193 B
PHP
14 lines
193 B
PHP
|
<?php
|
||
|
|
||
|
require_once "vendor/autoload.php";
|
||
|
|
||
|
use Graby\Graby;
|
||
|
|
||
|
$url = file_get_contents("php://stdin");
|
||
|
|
||
|
|
||
|
$graby = new Graby();
|
||
|
|
||
|
$result = $graby->fetchContent($url);
|
||
|
echo json_encode($result);
|