PHPackages                             jinas/covid-19-observer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jinas/covid-19-observer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jinas/covid-19-observer
=======================

PHP Toolkit to get data about covid19

v1.7.3(5y ago)1391MITPHP

Since Mar 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/boring-dragon/covid-19-observer)[ Packagist](https://packagist.org/packages/jinas/covid-19-observer)[ RSS](/packages/jinas-covid-19-observer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (17)Used By (0)

Covid-19 observer
=================

[](#covid-19-observer)

[![Build Status](https://camo.githubusercontent.com/2cd6a737bf94e70ebfc653dce7133051ed29eb2f8d4f140e42c45cc3a453090a/68747470733a2f2f7472617669732d63692e6f72672f626f72696e672d647261676f6e2f636f7669642d31392d6f627365727665722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/boring-dragon/covid-19-observer)[![StyleCI](https://camo.githubusercontent.com/83a604b8515df3d959856c309108cfeefc76f78375f2ab6b0cd89325fbadcc19/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3234383734393233372f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/248749237?branch=master)

PHP Toolkit to get data about covid19.

Installation
------------

[](#installation)

```
composer require jinas/covid-19-observer

```

Packages Used
-------------

[](#packages-used)

- [Guzzle](https://github.com/guzzle/guzzle)
- [Goutte](https://github.com/FriendsOfPHP/Goutte)
- [Illuminate Collections](https://github.com/tightenco/collect)

> All the global data is from John Hopkins University CSSE, COVID19API, COVIDREST,WOLRDOMETER Local Data(Maldives) by HPA, Coronamv

Usage
-----

[](#usage)

Load the adapter you want to use into statistics class LoadAdaptermethod

```
use Jinas\Covid19\Statistics;

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

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

Available Adapters
------------------

[](#available-adapters)

\\Jinas\\Covid19\\Adapters

- JohnHopkins
- Covid19API
- CovidRest
- WorldoMeter

Available Helper Classes
------------------------

[](#available-helper-classes)

### \\Jinas\\Covid19\\MV\\MaldivesStats

[](#jinascovid19mvmaldivesstats)

Wrapper around coronamv API.

List of available functions:

- GetTotal(): Get the total statistics numbers in maldives.
- GetCases(): Get all the cases in maldives.
- GetCasesSortedByRecent(): Get all the cases in maldives sorted by recent case.
- GetCasesGroupedByAtoll(): Get all the cases in maldives grouped by administrative atoll in an array.
- GetAlertLevels(): Get all the Alert levels in maldives \[ national and island alerts\]
- GetAlertLevelsSortedByLevel(): Get all the alert levels in maldives sorted by highest level.

### \\Jinas\\Covid19\\MV\\HPA

[](#jinascovid19mvhpa)

Wrapper around HPA MV API.

List of available functions:

- GetGlobaTotal(): Get total number of cases globaly.
- GetLocalTotal(): Get total Statistics In maldives.
- GetClinics(): Get the flu clinics details from HPA.
- GetAlertLevels(): Get Local Alert levels from HPA API.
- GetRestrictedPlaces(): Get Local Restricted places from HPA.
- GetTravelBans(): Get all the travel bannned countries.

### \\Jinas\\Covid19\\MV\\MvCases

[](#jinascovid19mvmvcases)

Wrapper around HPA Case API

- GetAll(): Get all returned by the API.
- GetCases(): Get all the cases returned by the API.
- FilterCasesByAge(string $operator, $value): Filter cases by there age.
- FilterCasesByNationality(string $nationality): Filter cases by nationality.
- FilterCasesByGender($gender): Filter cases by gender.

### \\Jinas\\Covid19\\MV\\NewsFeed

[](#jinascovid19mvnewsfeed)

Fetch the news assosiated with covid 19 from maldivian news websites.

List of available functions:

- FetchNews(): Fetch news assosiated with covid 19 in avas and sun news as an array.

### \\Jinas\\Covid19\\MV\\Feed

[](#jinascovid19mvfeed)

Get Global case Feed in dhivehi. Wrapper around coronamv feeds API.

List of available functions:

- GetTimeline(): Get Global case Feed in dhivehi.

### \\Jinas\\Covid19\\Adapters\\JohnHopkins

[](#jinascovid19adaptersjohnhopkins)

Wrapper around John hopkin's API.

List of available functions:

- GetTotal(): Get Total number of confirmed cases,recovered and deaths globally.
- GetAll(): Get all the attributes returned by hopkins API.
- GetAllCountries(): Get an array of available countries in Hopkin's Database.
- GetTotalByCountry(): Get the total confirmed cases,recovered,deaths in countries.
- GetAllGroupedByCountry(): Get all the attributes returned by hopkins API grouped by country region.
- GetTimeSeries() : Get all the confirmed cases,recovered,deaths in timeseries

### \\Jinas\\Covid19\\Adapters\\Covid19API

[](#jinascovid19adapterscovid19api)

Wrapper around covid19api.com API.

List of available functions:

- GetTotal(): Get Total number of confirmed cases,recovered,active and deaths globally.
- GetAll(): Get all the attributes returned by API.

Image Render
------------

[](#image-render)

This package also has ability to render the statistics as an image.

[![globalcases](https://camo.githubusercontent.com/ade30030d5aa14b8a715bfdb9f98493ab4ac6cf6e0426033d0dc03698c96387f/68747470733a2f2f636f726f6e616d762e6c6976652f72656e6465722f676c6f62616c)](https://camo.githubusercontent.com/ade30030d5aa14b8a715bfdb9f98493ab4ac6cf6e0426033d0dc03698c96387f/68747470733a2f2f636f726f6e616d762e6c6976652f72656e6465722f676c6f62616c)The image is auto updated

### Usage

[](#usage-1)

```
use Jinas\Covid19\Render;

Render::RenderGlobal();
```

Source
------

[](#source)

- [John Hopkins](https://www.jhu.edu/)
- [WorldoMeter](https://www.worldometers.info/coronavirus/)
- [CovidRest](http://covid-rest.herokuapp.com/)
- [Covid19API](https://covid19api.com/)
- [Ministry of health republic of maldives](https://covid19.health.gov.mv)
- [Coronamv](https://coronamv.live/)
- [Avas News](https://avas.mv/)
- [Sun News](http://www.sun.mv/)

Showcase
--------

[](#showcase)

- [Coronamv](https://coronamv.live/), (Web) by [Baraveli](https://baraveli.xyz/)
- [COVID19](https://covid19.kodeserve.mv/), (Web) by [KodeServe](https://kodeserve.mv/)

License
-------

[](#license)

MIT License 2020, Mohamed Jinas.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity64

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~17 days

Recently: every ~36 days

Total

12

Last Release

2050d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cf0464cf5ff5afa87f8940e92f2e9974200ef0939a3cd1a922bc3b5793850a06?d=identicon)[jinas123](/maintainers/jinas123)

---

Tags

alert-levelsavascomposer-packagecoronaviruscovid-19dhivehihopkins-apihpajohns-hopkins-universitymaldivesnovel-coronaviruspackagephpphp-librarysun-newstoolkittotal-statistics

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jinas-covid-19-observer/health.svg)

```
[![Health](https://phpackages.com/badges/jinas-covid-19-observer/health.svg)](https://phpackages.com/packages/jinas-covid-19-observer)
```

###  Alternatives

[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19280.3k3](/packages/symfony-ux-cropperjs)[bubbstore/correios

Biblioteca que faz cálculo de frete, rastreamento de objetos e consulta de CEP diretamente do Webservice dos Correios.

2589.0k](/packages/bubbstore-correios)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
