PHP CoronaVirus Database API from NCDC: Provide CoronaVirus data and serve its as an API

Recommend this page to a friend!
  Info   Example   View files (12)   Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-06-14 (1 month ago) Not yet rated by the usersTotal: 43 This week: 1All time: 9,877 This week: 255
Version License PHP version Categories
ncdc 1.0.0The PHP License5PHP 5, Web services, Geography, Parsers, H...
Description Author
This package is specific mainly for applications used in Nigeria Nigeria .

This package can provide CoronaVirus data and serve its as an API.

It can access the Nigeria Centre for Disease Control site dedicated to publishing the CoronaVirus statistics and parses its pages to extract the current statistics values about the evolution of the disease in Nigeria.

The package returns an array with total numbers that can be served as an API response which includes the total number of confirmed cases, the total number of active cases, total number of recovered_cases and the total number of dead cases.

Picture of Busari Ridwan
  Performance   Level  
Name: Busari Ridwan <contact>
Classes: 2 packages by
Country: Nigeria Nigeria
Age: ???
All time rank: 386728 in Nigeria Nigeria
Week rank: 79 6 in Nigeria Nigeria
Innovation award
Innovation award
Nominee: 1x



This scripts scraps COVID19 data from NCDC official website and return it in a json response that can be used as an API

The endpoint is located in the following URL :

File Role Description
.idea (6 files)
app (1 directory)
composer.json Data Auxiliary data
composer.lock Data Auxiliary data
index.php Example Example script Doc. Documentation

  Files  /  .idea  
File Role Description
   misc.xml Data Auxiliary data
   modules.xml Data Auxiliary data
   NCDC.iml Data Auxiliary data
   php.xml Data Auxiliary data
   vcs.xml Data Auxiliary data
   workspace.xml Data Auxiliary data

  Files  /  app  
File Role Description
Services (2 files)

  Files  /  app  /  Services  
File Role Description
   BaseService.php Class Class source
   ScrapNcdcWebsite.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:9,877
This week:255

For more information send a message to info at phpclasses dot org.