PHPackages                             imagdic/covid19 - 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. [API Development](/categories/api)
4. /
5. imagdic/covid19

ActiveLibrary[API Development](/categories/api)

imagdic/covid19
===============

A Laravel Wrapper for the COVID19 API

1.0.1(6y ago)210MITPHPPHP ^7.2CI failing

Since Apr 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ivanmagdic/covid19)[ Packagist](https://packagist.org/packages/imagdic/covid19)[ RSS](/packages/imagdic-covid19/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Covid19 - Laravel API Wrapper
=============================

[](#covid19---laravel-api-wrapper)

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

[](#installation)

```
composer require imagdic/covid19
```

Usage
-----

[](#usage)

```
// A summary of new and total cases per country updated daily.
$summary = Covid19::summary();

// Get recovered cases for specific country
$recovered = Covid19::recoveredByCountry('countryName');

// Get death cases for specific country
$deaths = Covid19::deathsByCountry('countryName');

// Get confirmed cases for specific country
$confirmed = Covid19::confirmedByCountry('countryName');

// Get all cases for specific country
$allCases = Covid19::allCasesByCountry('countryName');
```

Example
-------

[](#example)

```
$allCases = Covid19::allCasesByCountry('Italy');
```

Content of `$allCases` variable:

```
...
  [
    "Country": "Italy",
    "CountryCode": "IT",
    "Province": "",
    "City": "",
    "CityCode": "",
    "Lat": "41.87",
    "Lon": "12.57",
    "Confirmed": 115242,
    "Deaths": 13915,
    "Recovered": 18278,
    "Active": 0,
    "Date": "2020-04-02T00:00:00Z"
  ],
  [
    "Country": "Italy",
    "CountryCode": "IT",
    "Province": "",
    "City": "",
    "CityCode": "",
    "Lat": "41.87",
    "Lon": "12.57",
    "Confirmed": 119827,
    "Deaths": 14681,
    "Recovered": 19758,
    "Active": 0,
    "Date": "2020-04-03T00:00:00Z"
  ],
  [
    "Country": "Italy",
    "CountryCode": "IT",
    "Province": "",
    "City": "",
    "CityCode": "",
    "Lat": "41.87",
    "Lon": "12.57",
    "Confirmed": 124632,
    "Deaths": 15362,
    "Recovered": 20996,
    "Active": 0,
    "Date": "2020-04-04T00:00:00Z"
  ],
...

```

Run Unit Test
-------------

[](#run-unit-test)

```
$ php artisan test
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~0 days

Total

2

Last Release

2260d ago

### Community

Maintainers

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

---

Top Contributors

[![ivanmagdic](https://avatars.githubusercontent.com/u/23238874?v=4)](https://github.com/ivanmagdic "ivanmagdic (4 commits)")

---

Tags

laravelwrapperApi Wrappercovid19

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/imagdic-covid19/health.svg)

```
[![Health](https://phpackages.com/badges/imagdic-covid19/health.svg)](https://phpackages.com/packages/imagdic-covid19)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M971](/packages/statamic-cms)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M223](/packages/backpack-crud)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k9.5M86](/packages/openai-php-laravel)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

74331.3k1](/packages/mozex-anthropic-laravel)

PHPackages © 2026

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