PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Busari Ridwan   PHP CoronaVirus Database API from NCDC   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP CoronaVirus Database API from NCDC
Provide CoronaVirus data and serve its as an API
Author: By
Last change:
Date: 3 years ago
Size: 275 bytes
 

Contents

Class file image Download
<?php

require "vendor/autoload.php";

header("Access-Control-Allow-Origin: *");
header("HTTP/1.1 200 OK");
header("Content-Type: application/json; charset=UTF-8");

$response = (new \App\Services\ScrapNcdcWebsite())->run();

echo
json_encode($response, JSON_PRETTY_PRINT);