jinas/covid-19-observer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jinas/covid-19-observer

Composer 安装命令:

composer require jinas/covid-19-observer

包简介

PHP Toolkit to get data about covid19

README 文档

README

Build Status StyleCI

PHP Toolkit to get data about covid19.

Installation

composer require jinas/covid-19-observer

Packages Used

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

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

\Jinas\Covid19\Adapters

  • JohnHopkins
  • Covid19API
  • CovidRest
  • WorldoMeter

Available Helper Classes

\Jinas\Covid19\MV\MaldivesStats

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

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

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

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

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

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

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

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

globalcases The image is auto updated

Usage

use Jinas\Covid19\Render;

Render::RenderGlobal();

Source

Showcase

License

MIT License 2020, Mohamed Jinas.

jinas/covid-19-observer 适用场景与选型建议

jinas/covid-19-observer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 39 次下载、GitHub Stars 达 1, 最近一次更新时间为 2020 年 03 月 20 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 jinas/covid-19-observer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 jinas/covid-19-observer 我们能提供哪些服务?
定制开发 / 二次开发

基于 jinas/covid-19-observer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 39
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-03-20