yayasanvitka/covid19 问题修复 & 功能扩展

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

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

yayasanvitka/covid19

Composer 安装命令:

composer create-project yayasanvitka/covid19

包简介

API for Global Covid 19 Pandemic based on Lumen Framework

README 文档

README

Latest Stable Version Total Downloads License

Introduction

yayasanvitka/covid19 is a Lumen based application which was created to easily publish and consume the API for live information about Novel Coronavirus-19. This module is based on API from javieraviles/covidAPI.

Documentation

Requirement

This application is created with Lumen Framework, and required the same package as Lumen 7.

Installation & Setup

composer create-project --prefer-dist yayasanvitka/covid19

If you want to set config, for example disable Batam City, Indonesia data loading, you can set COVID_LOAD_CITY_BATAM on your .env to false.

Web Route

  • /api/global: Global Data
  • /api/global/{DATE}: Global Data by date
  • /api/countries: List of countries
  • /api/countries/{COUNTRY}: Data per Country
  • /api/countries/{COUNTRY}/{DATE}: Data per Country by date
  • /api/city/batam: Data for Batam, Indonesia
  • /api/city/batam/{DATE}: Data for Batam, Indonesia by date

Facade Methods

  • Covid::fetch()
    Fetch data from endpoint
  • Covid::get()
    Get The Data. Returns \Illuminate\Support\Collection. Can be chained with country() method.
  • Covid::country()
    Get the country data.
  • Covid::total()->cases
    Get total data (Global) for cases
  • Covid::total()->todayCases
    Get total data (Global) for todayCases
  • Covid::total()->todayDeath
    Get total data (Global) for todayDeath
  • Covid::total()->recovered
    Get total data (Global) for recovered
  • Covid::total()->deaths
    Get total data (Global) for deaths
  • Covid::total()->active
    Get total data (Global) for active
  • Covid::total()->critical
    Get total data (Global) for critical
  • Covid::total()->casesPerOneMillion
    Get total data (Global) for casesPerOneMillion

Artisan Command

php artisan covid19-update
Run this to update the database

License

MIT License 2020, IT Yayasan Vitka. Based on API from javieraviles, the data may not be used for commercial purposes. Feel free to exted the application for your city, and please contact us on adly@yayasanvitka.id if you found any bugs.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固