{"id":36994894,"url":"https://github.com/bioudi/laravel-meta-weather-api","last_synced_at":"2026-01-13T23:47:10.342Z","repository":{"id":62494448,"uuid":"177339292","full_name":"bioudi/laravel-meta-weather-api","owner":"bioudi","description":"🌦 Simple laravel package Consume the MetaWeather API.","archived":false,"fork":false,"pushed_at":"2019-08-27T20:43:57.000Z","size":19,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-17T23:55:04.124Z","etag":null,"topics":["laravel","metaweather","package","packagist","weather","weather-api"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bioudi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-23T20:56:41.000Z","updated_at":"2025-08-21T22:03:18.000Z","dependencies_parsed_at":"2022-11-02T09:45:32.870Z","dependency_job_id":null,"html_url":"https://github.com/bioudi/laravel-meta-weather-api","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bioudi/laravel-meta-weather-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bioudi%2Flaravel-meta-weather-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bioudi%2Flaravel-meta-weather-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bioudi%2Flaravel-meta-weather-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bioudi%2Flaravel-meta-weather-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bioudi","download_url":"https://codeload.github.com/bioudi/laravel-meta-weather-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bioudi%2Flaravel-meta-weather-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["laravel","metaweather","package","packagist","weather","weather-api"],"created_at":"2026-01-13T23:47:10.217Z","updated_at":"2026-01-13T23:47:10.309Z","avatar_url":"https://github.com/bioudi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# laravel-meta-weather-api\nSimple laravel package Consume the [MetaWeather  API](https://www.metaweather.com/api/).\n\n---\n## MetaWeather API Examples\nPlease note that the MetaWeather API does not require any form of authentication. See the [MetaWeather API documentation](https://www.metaweather.com/api/) for all supported methods and parameters.\n\n**Important:** the API does not support CORS.\n## Installation\n\nTo get the latest version of laravel-meta-weather-api on your project, require it from \"composer\":\n\n\t$ composer require bioudi/laravel-meta-weather-api\n\t\n### Laravel\n\nRegister the provider directly in your app configuration file config/app.php `config/app.php`:\n\n```php\n'providers' =\u003e [\n\t// ...\n\n\tBioudi\\LaravelMetaWeatherApi\\WeatherserviceProvider::class\n]\n```\n## Usage\n```php\nuse Bioudi\\LaravelMetaWeatherApi\\Weather;\n$weather = new Weather();\n```\n### Search by city name\n```php\n$weather-\u003egetByCityName('casablanca');\n```\n#### Output\n```json\n{\n  \"consolidated_weather\": [\n    {\n      \"id\": 6739825128374272,\n      \"weather_state_name\": \"Light Cloud\",\n      \"weather_state_abbr\": \"lc\",\n      \"wind_direction_compass\": \"NE\",\n      \"created\": \"2019-03-24T10:23:58.103425Z\",\n      \"applicable_date\": \"2019-03-24\",\n      \"min_temp\": 11.86,\n      \"max_temp\": 24.58,\n      \"the_temp\": 23.2,\n      \"wind_speed\": 4.869768947042604,\n      \"wind_direction\": 35.5,\n      \"air_pressure\": 1014.9549999999999,\n      \"humidity\": 56,\n      \"visibility\": 13.852227988546886,\n      \"predictability\": 70\n    }\n  ],\n  \"time\": \"2019-03-24T11:40:48.477916Z\",\n  \"sun_rise\": \"2019-03-24T06:29:23.305030Z\",\n  \"sun_set\": \"2019-03-24T18:44:48.967938Z\",\n  \"timezone_name\": \"LMT\",\n  \"parent\": {\n    \"title\": \"Morocco\",\n    \"location_type\": \"Country\",\n    \"woeid\": 23424893,\n    \"latt_long\": \"31.434200,-6.402450\"\n  },\n  \"sources\": [\n    {\n      \"title\": \"BBC\",\n      \"slug\": \"bbc\",\n      \"url\": \"http://www.bbc.co.uk/weather/\",\n      \"crawl_rate\": 180\n    },\n    {\n      \"title\": \"Forecast.io\",\n      \"slug\": \"forecast-io\",\n      \"url\": \"http://forecast.io/\",\n      \"crawl_rate\": 480\n    },\n    {\n      \"title\": \"Met Office\",\n      \"slug\": \"met-office\",\n      \"url\": \"http://www.metoffice.gov.uk/\",\n      \"crawl_rate\": 180\n    },\n    {\n      \"title\": \"OpenWeatherMap\",\n      \"slug\": \"openweathermap\",\n      \"url\": \"http://openweathermap.org/\",\n      \"crawl_rate\": 360\n    },\n    {\n      \"title\": \"Weather Underground\",\n      \"slug\": \"wunderground\",\n      \"url\": \"https://www.wunderground.com/?apiref=fc30dc3cd224e19b\",\n      \"crawl_rate\": 720\n    },\n    {\n      \"title\": \"World Weather Online\",\n      \"slug\": \"world-weather-online\",\n      \"url\": \"http://www.worldweatheronline.com/\",\n      \"crawl_rate\": 360\n    },\n    {\n      \"title\": \"Yahoo\",\n      \"slug\": \"yahoo\",\n      \"url\": \"http://weather.yahoo.com/\",\n      \"crawl_rate\": 180\n    }\n  ],\n  \"title\": \"Casablanca\",\n  \"location_type\": \"City\",\n  \"woeid\": 1532755,\n  \"latt_long\": \"33.596611,-7.619340\",\n  \"timezone\": \"Africa/Casablanca\"\n}\n```\n### Search by city name and date\n```php\n$weather-\u003egetByCityName('london', '2018/03/03');\n```\n### Search by coordinates\n```php\n$weather-\u003egetByCoordinates(36.96, -122.02);\n```\n### Search by coordinates and date\n```php\n$weather-\u003egetByCoordinates(36.96, -122.02, '2018/01/01');\n```\n## Credits\n- Thanks to [MetaWeather](https://www.metaweather.com/) for providing an Open API to the Internet.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbioudi%2Flaravel-meta-weather-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbioudi%2Flaravel-meta-weather-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbioudi%2Flaravel-meta-weather-api/lists"}