PHP code example of jinas / covid-19-observer

1. Go to this page and download the library: Download jinas/covid-19-observer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jinas / covid-19-observer example snippets



use Jinas\Covid19\Statistics;

$stats = Statistics::LoadAdapter(
    new \Jinas\Covid19\Adapters\WorldoMeter
);

// Returns the total number of confirmed,recovered and deaths
$stats->GetTotal(); 


use Jinas\Covid19\Render;

Render::RenderGlobal();