{"id":37366448,"url":"https://github.com/rakibdevs/covid19-laravel-api","last_synced_at":"2026-01-16T04:52:46.114Z","repository":{"id":47560422,"uuid":"328336264","full_name":"rakibdevs/covid19-laravel-api","owner":"rakibdevs","description":"Laravel Covid-19 API  is a Laravel package to connect Open Covid-19  APIs ( https://rapidapi.com/api-sports/api/covid-193 ) and access free API services.","archived":false,"fork":false,"pushed_at":"2021-08-24T01:47:19.000Z","size":22,"stargazers_count":19,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T14:52:09.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rakibdevs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-10T08:25:25.000Z","updated_at":"2022-10-07T18:32:00.000Z","dependencies_parsed_at":"2022-09-10T12:00:29.695Z","dependency_job_id":null,"html_url":"https://github.com/rakibdevs/covid19-laravel-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rakibdevs/covid19-laravel-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibdevs%2Fcovid19-laravel-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibdevs%2Fcovid19-laravel-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibdevs%2Fcovid19-laravel-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibdevs%2Fcovid19-laravel-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rakibdevs","download_url":"https://codeload.github.com/rakibdevs/covid19-laravel-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibdevs%2Fcovid19-laravel-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-16T04:52:46.056Z","updated_at":"2026-01-16T04:52:46.103Z","avatar_url":"https://github.com/rakibdevs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Laravel [Covid 19](https://rapidapi.com/api-sports/api/covid-193) API\n\n![Packagist](https://img.shields.io/packagist/dt/rakibdevs/covid19-laravel-api)\n[![GitHub stars](https://img.shields.io/github/stars/rakibdevs/covid19-laravel-api)](https://github.com/rakibdevs/covid19-laravel-api/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/rakibdevs/covid19-laravel-api)](https://github.com/rakibdevs/covid19-laravel-api/network)\n[![GitHub issues](https://img.shields.io/github/issues/rakibdevs/covid19-laravel-api)](https://github.com/rakibdevs/covid19-laravel-api/issues)\n[![GitHub license](https://img.shields.io/github/license/rakibdevs/covid19-laravel-api)](https://github.com/rakibdevs/covid19-laravel-api/blob/master/LICENSE)\n[![Twitter](https://img.shields.io/twitter/url?style=social\u0026url=https%3A%2F%2Fpackagist.org%2Fpackages%2Frakibdevs%2Fcovid19-laravel-api)](https://twitter.com/intent/tweet?text=Wow:\u0026url=https%3A%2F%2Fpackagist.org%2Fpackages%2Frakibdevs%2Fcovid19-laravel-api)\n\n Laravel Covid-19 API (covid19-laravel-api) is a Laravel package to connect Open Covid-19  APIs ( https://rapidapi.com/api-sports/api/covid-193 ) and access free API services easily.\n\n## Supported APIs\n| APIs | Get data by | \n| --- | --- |\n| [Statistics](https://covid-193.p.rapidapi.com/statistics) | By country [optional] |\n| [Available Countries](https://covid-193.p.rapidapi.com/countries) | |\n| [History](https://covid-193.p.rapidapi.com/history) | By country [Required], date [optional] |\n\n\n\n## Installation\n\nInstall the package through [Composer](http://getcomposer.org).\nOn the command line:\n\n```\ncomposer require rakibdevs/covid19-laravel-api\n\n```\n\n\n## Configuration \nIf Laravel \u003e 7, no need to add provider\n\nAdd the following to your `providers` array in `config/app.php`:\n\n```php\n'providers' =\u003e [\n    // ...\n    RakibDevs\\Covid19\\Covid19ServiceProvider::class,\n],\n'aliases' =\u003e [\n    //...\n    'Covid19' =\u003e RakibDevs\\Covid19\\Covid19::class,\t\n];\n\n\n```\n\n\nPublish the required package configuration file using the artisan command:\n```\n\t$ php artisan vendor:publish\n```\nEdit the `config/openCovid19.php` file and modify the `api_key` value with your Open Covid19 Map api key.\n\nGet an api key [here](https://rapidapi.com/api-sports/api/covid-193/pricing)\n```php\n\treturn [\n\t    'api_key' \t        =\u003e ''\n\t];\n```\n\n\n## Usage\nHere you can see some example of just how simple this package is to use.\n\n```php\nuse RakibDevs\\Covid19\\Covid19;\nuse RakibDevs\\Covid19\\Facades\\Covid;\n\n// Get current Covid19 by city name \n\n// 1. The traditional way\n$wt   = new Covid19();\n$info = $wt-\u003egetCountries('ban');    \n\n// 2. The Facade way\n$info = Covid::getCountries('ban');\n\n\n```\n\n### Output\n```\n{\n    \"get\":\"countries\"\n    \"parameters\":{\n        \"search\":\"ban\"\n    }\n    \"errors\":[]\n    \"results\":3\n    \"response\":[\n        0:\"Albania\"\n        1:\"Bangladesh\"\n        2:\"Lebanon\"\n    ]\n}\n```\n\n### [Available Countries](https://rapidapi.com/api-sports/api/covid-193) \nGet all current statistics for all countries\n\n```php\n\n// By country name or portion of string\n$info = $wt-\u003egetCountries('ban'); \n\n// Get all countries\n$info = $wt-\u003egetAllCountries(); \n\n```\n\n#### Output:\n```\n{\n    \"get\":\"countries\"\n    \"parameters\":[]\n    \"errors\":[]\n    \"results\":225\n    \"response\":[\n        0:\"Afghanistan\"\n        1:\"Albania\"\n        ........\n    ]\n}\n\n```\n### [Statistics](https://api-sports.io/documentation/covid-19/v1#tag/Statistics) \nThis endpoint reflects the current status of the spread of the coronavirus in all countries.\n\nIt is possible to filter per country to retrieve its current status.\n\nFor the current situation in the world use `All`\n\n```php\n// By country name\n$info = $wt-\u003egetStatistics(); \n\n// Get statistics\n$info = $wt-\u003egetAllStatistics(); \n\n```\n\n#### Output:\n```\n{\n    \"get\":\"statistics\"\n    \"parameters\":{\n        \"country\":\"bangladesh\"\n    }\n    \"errors\":[]\n    \"results\":1\n    \"response\":[\n        0:{\n            \"continent\":\"Asia\"\n            \"country\":\"Bangladesh\"\n            \"population\":165545725\n            \"cases\":{\n            \"new\":\"+692\"\n            \"active\":47562\n            \"critical\":NULL\n            \"recovered\":466064\n            \"1M_pop\":\"3149\"\n            \"total\":521382\n        }\n        \"deaths\":{\n            \"new\":\"+22\"\n            \"1M_pop\":\"47\"\n            \"total\":7756\n        }\n        \"tests\":{\n            \"1M_pop\":\"20202\"\n            \"total\":3344399\n        }\n        \"day\":\"2021-01-10\"\n        \"time\":\"2021-01-10T05:30:06+00:00\"\n        }\n    ]\n}\n\n```\n\n\n\n### [History](https://rapidapi.com/api-sports/api/covid-193forecast5) \nThis dunction refers to the entire history of statistics for a country.\n\nFor global results, use .\n\n```php\n// By country name [required] and date\n$info = $wt-\u003egetHistory('bangladesh', '2020-01-01'); \n\n\n```\n\n### Output\n```\n{\n    \"get\":\"history\"\n    \"parameters\":{\n        \"country\":\"Bangladesh\"\n        \"day\":\"2020-06-02\"\n    }\n    \"errors\":[]\n    \"results\":1\n    \"response\":[\n        0:{\n            \"continent\":\"Asia\"\n            \"country\":\"Bangladesh\"\n            \"population\":164551275\n            \"cases\":{\n                \"new\":\"+2381\"\n                \"active\":38265\n    ....\n```\n\n### Worldwide Summary\nGet Covid-19 worldwide summary till current date.\n\n```php\n\n$info = $wt-\u003egetSummary();\n\n```\n### Output\n```\n{\n    \"cases_new\": 777635\n    \"cases_active\": 67908362\n    \"cases_critical\": 325531\n    \"cases_recovered\": 193258167\n    \"cases_total\": 270304615\n    \"deaths_new\": 14668\n    \"deaths_total\": 5805634\n    \"tests_total\": 1282221510\n    \"time\": \"2020-03-25T06:00:07+00:00\"\n}\n```\n\n## License\n\nLaravel Open Covid19 API is licensed under [The MIT License (MIT)](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakibdevs%2Fcovid19-laravel-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frakibdevs%2Fcovid19-laravel-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakibdevs%2Fcovid19-laravel-api/lists"}