Go to directory of project
php -S localhost:8000
$context = stream_context_create(
array(
"http" => array(
"header" => "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36"
)
)
);
echo file_get_contents("https://api.github.com/users/wktdev", false, $context);