定制 yayasanvitka/covid19-module 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

yayasanvitka/covid19-module

Composer 安装命令:

composer require yayasanvitka/covid19-module

包简介

README 文档

README

Latest Stable Version Total Downloads License

Introduction

yayasanvitka/covid19-module is a Laravel package 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 module is created as laravel-modules, and require the following:

Installation & Setup

composer require yayasanvitka/covid19-module

Web Route

  • /api/covid19: Global Data
  • /api/covid19/countries: List of countries
  • /api/covid19/countries/{COUNTRY}: Data per Country

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

Facade Methods

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.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固