{"id":15025110,"url":"https://github.com/michaelnabil230/laravel-weather","last_synced_at":"2025-04-12T12:32:10.454Z","repository":{"id":59773776,"uuid":"539125222","full_name":"michaelnabil230/laravel-weather","owner":"michaelnabil230","description":"Free Weather Forecast API","archived":false,"fork":false,"pushed_at":"2025-04-03T09:31:35.000Z","size":304,"stargazers_count":9,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-03T09:35:02.602Z","etag":null,"topics":["laravel","laravel-framework","php","weather"],"latest_commit_sha":null,"homepage":"https://open-meteo.com/en","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/michaelnabil230.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"MichaelNabil230"}},"created_at":"2022-09-20T18:00:40.000Z","updated_at":"2025-04-03T09:31:39.000Z","dependencies_parsed_at":"2024-06-17T02:54:57.391Z","dependency_job_id":"6b7d2229-d806-4a8c-b2a8-9f77a8ba16cb","html_url":"https://github.com/michaelnabil230/laravel-weather","commit_stats":{"total_commits":17,"total_committers":3,"mean_commits":5.666666666666667,"dds":0.4117647058823529,"last_synced_commit":"0bdb364125cf9080094cfbd17f572747c54162e6"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelnabil230%2Flaravel-weather","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelnabil230%2Flaravel-weather/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelnabil230%2Flaravel-weather/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelnabil230%2Flaravel-weather/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelnabil230","download_url":"https://codeload.github.com/michaelnabil230/laravel-weather/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248566584,"owners_count":21125691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","laravel-framework","php","weather"],"created_at":"2024-09-24T20:01:31.856Z","updated_at":"2025-04-12T12:32:10.061Z","avatar_url":"https://github.com/michaelnabil230.png","language":"PHP","funding_links":["https://github.com/sponsors/MichaelNabil230","https://github.com/sponsors/michaelnabil230","https://ko-fi.com/michaelnabil230","https://www.buymeacoffee.com/michaelnabil230","https://www.paypal.com/paypalme/MichaelNabil23"],"categories":[],"sub_categories":[],"readme":"# 🌤 Open-Meteo Weather API\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/michaelnabil230/laravel-weather.svg?style=flat-square)](https://packagist.org/packages/michaelnabil230/laravel-weather)\n[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/michaelnabil230/laravel-weather/run-tests?label=tests)](https://github.com/michaelnabil230/laravel-weather/actions?query=workflow%3Arun-tests+branch%3Amaster)\n[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/michaelnabil230/laravel-weather/Fix%20PHP%20code%20style%20issues?label=code%20style)](https://github.com/michaelnabil230/laravel-weather/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amaster)\n[![Total Downloads](https://img.shields.io/packagist/dt/michaelnabil230/laravel-weather.svg?style=flat-square)](https://packagist.org/packages/michaelnabil230/laravel-weather)\n\n[![Open Meteo](https://cdn.substack.com/image/fetch/w_1360,c_limit,f_auto,q_auto:best,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd0d7953-5a9d-441c-b59f-4cde244503a1_934x461.png)](https://open-meteo.com/en)\n\nDownload Meteorological Data from OPEN-METEO API (https://open-meteo.com/en)\n\nOpen-Meteo collaborates with National Weather Services providing Open Data with 11 to 2 km resolution. Our high performance APIs select the best weather model for your location and provide data as a simple JSON API.\n\nAPIs are free without any API key for open-source developers and non-commercial use. You can embed them directly into your app.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require michaelnabil230/laravel-weather\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"laravel-weather-config\"\n```\n\nThis is the contents of the published config file:\n\n```php\nreturn [\n    'temperature_unit' =\u003e 'celsius',\n    'wind_speed_unit' =\u003e 'kmh',\n    'precipitation_unit' =\u003e 'mm',\n    'time_format' =\u003e 'iso8601',\n    'timezone' =\u003e 'GMT',\n];\n```\n\n## Usage\n\n```php\n$weather = \\MichaelNabil230\\Weather\\Weather::location(30.0812558, 31.2511902)\n    -\u003ecurrent()\n    -\u003eget();\n```\n\nFunctions:\n\n| **Parameter**       | **Format**     | **Required** | **Default** |\n|---------------------|----------------|--------------|-------------|\n| currentWeather      | Bool           | No           | false       |\n| temperatureUnit     | String         | No           | celsius     |\n| windSpeedUnit       | String         | No           | kmh         |\n| precipitationUnit   | String         | No           | kmh         |\n| timeFormat          | String         | No           | iso8601     |\n| timezone            | String         | No           | UTC         |\n| pastDays            | Integer (0-2)  | No           | 0           |\n\n15-minutely Functions:\n\n| **Variable**                 | **Valid time**            | **Unit**               |\n|------------------------------|---------------------------|------------------------|\n| temperature_2m_15min         | Instant                   | °C (°F)                |\n| relativeHumidity_2m_15min    | Instant                   | %                      |\n| dewPoint_2m_15min            | Instant                   | °C (°F)                |\n| apparentTemperature_15min    | Instant                   | °C (°F)                |\n| windSpeed_10m_15min          | Instant                   | km/h (mph, m/s, knots) |\n| windSpeed_80m_15min          | Instant                   | km/h (mph, m/s, knots) |\n| windDirection_10m_15min      | Instant                   | °                      |\n| windDirection_80m_15min      | Instant                   | °                      |\n| windGusts_10m_15min          | Preceding 15 minutes max  | km/h (mph, m/s)        |\n| shortwaveRadiation_15min     | Preceding 15 minutes mean | W/m²                   |\n| directRadiation_15min        | Preceding 15 minutes mean | W/m²                   |\n| directNormalIrradiance_15min | Preceding 15 minutes mean | W/m²                   |\n| diffuseRadiation_15min       | Preceding 15 minutes mean | W/mv²                  |\n| globalTiltedIrradiance_15min | Preceding 15 minutes mean | W/mv²                  |\n| sunshineDuration_15Min       | Preceding 15 minutes sum  | Seconds                |\n| precipitation_15min          | Preceding 15 minutes sum  | mm (inch)              |\n| snowfall_15min               | Preceding 15 minutes sum  | cm (inch)              |\n| rain_15min                   | Preceding 15 minutes sum  | mm (inch)              |\n| cape_15min                   | Instant                   | J/kg                   |\n| visibility_15min             | Instant                   | meters                 |\n| weatherCode_15min            | Instant                   | WMO code               |\n\nHourly Functions:\n\n| **Variable**             | **Valid time**             | **Unit**               |\n|--------------------------|----------------------------|------------------------|\n| temperature_2m           | Instant                    | °C (°F)                |\n| relativeHumidity_2m      | Instant                    | %                      |\n| dewPoint_2m              | Instant                    | °C (°F)                |\n| apparentTemperature      | Instant                    | °C (°F)                |\n| pressureMsl              | Instant                    | hPa                    |\n| cloudCover               | Instant                    | %                      |\n| cloudCoverLow            | Instant                    | %                      |\n| cloudCoverMid            | Instant                    | %                      |\n| cloudCoverHigh           | Instant                    | %                      |\n| windSpeed_10m            | Instant                    | km/h (mph, m/s, knots) |\n| windSpeed_80m            | Instant                    | km/h (mph, m/s, knots) |\n| windSpeed_120m           | Instant                    | km/h (mph, m/s, knots) |\n| windSpeed_180m           | Instant                    | km/h (mph, m/s, knots) |\n| windDirection_10m        | Instant                    | °                      |\n| windDirection_80m        | Instant                    | °                      |\n| windDirection_120m       | Instant                    | °                      |\n| windDirection_180m       | Instant                    | °                      |\n| windGusts_10m            | Preceding hour max         | km/h (mph, m/s)        |\n| shortwaveRadiation       | Preceding hour mean W/m²   |                        |\n| directRadiation          | Preceding hour mean        | W/m²                   |\n| diffuseRadiation         | Preceding hour mean        | W/mv²                  |\n| vaporPressureDeficit     | Instant                    | kPa                    |\n| evapotranspiration       | Preceding hour sum         | mm (inch)              |\n| precipitation            | Preceding hour sum         | mm (inch)              |\n| precipitationProbability | Preceding hour probability | %                      |\n| hourlyWeatherCode        | Instant                    | WMO code               |\n| snowHeight               | Instant                    | meters                 |\n| freezingLevelHeight      | Instant                    | meters                 |\n| soilTemperature_0cm      | Instant                    | °C (°F)                |\n| soilTemperature_6cm      | Instant                    | °C (°F)                |\n| soilTemperature_18cm     | Instant                    | °C (°F)                |\n| soilTemperature_54cm     | Instant                    | °C (°F)                |\n| soilMoisture_0_1cm       | Instant                    | m³/m³                  |\n| soilMoisture_1_3cm       | Instant                    | m³/m³                  |\n| soilMoisture_3_9cm       | Instant                    | m³/m³                  |\n| soilMoisture_9_27cm      | Instant                    | m³/m³                  |\n| soilMoisture_27_81cm     | Instant                    | m³/m³                  |\n| allHourly                | -                          | -                      |\n\nDaily Functions:\n\n| **Variable**               | **Unit**               |\n|----------------------------|------------------------|\n| temperature_2mMax          | °C (°F)                |\n| temperature_2mMin          | °C (°F)                |\n| apparentTemperatureMax     | °C (°F)                |\n| apparentTemperatureMin     | °C (°F)                |\n| precipitationSum           | mm                     |\n| precipitationHours         | hours                  |\n| dailyWeatherCode           | WMO code               |\n| sunrise                    | iso8601                |\n| sunset                     | iso8601                |\n| windSpeed_10mMax           | km/h (mph, m/s, knots) |\n| windGusts_10mMax           | km/h (mph, m/s, knots) |\n| windDirection_10mDominant  | °                      |\n| shortwaveRadiationSum      | MJ/m²                  |\n| allDaily                   | -                      |\n\nWMO Weather interpretation codes (WW):\n\n| **Code**                                  | **Description**                                  |\n|-------------------------------------------|--------------------------------------------------|\n| 0                                         | Clear sky                                        |\n| 1, 2, 3                                   | Mainly clear, partly cloudy, and overcast        |\n| 45, 48                                    | Fog and depositing rime fog                      |\n| 51, 53, 55                                | Drizzle: Light, moderate, and dense intensity    |\n| 56, 57                                    | Freezing Drizzle: Light and dense intensity      |\n| 61, 63, 65                                | Rain: Slight, moderate, and heavy intensity      |\n| 66, 67                                    | Freezing Rain: Light and heavy intensity         |\n| 71, 73, 75                                | Snowfall: Slight, moderate, and heavy intensity  |\n| 77                                        | Snow grains                                      |\n| 80, 81, 82                                | Rain showers: Slight, moderate, and violent      |\n| 85, 86                                    | Snow showers slight and heavy                    |\n| 95 *                                      | Thunderstorm: Slight or moderate                 |\n| 96, 99 *                                  | Thunderstorm with slight and heavy hail          |\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Support\n\n[![Image for sponsor](./.assets/sponsors.png)](https://github.com/sponsors/michaelnabil230)\n\nOr\n\n[![Ko-fi](.assets/ko-fi.png)](https://ko-fi.com/michaelnabil230)[![Buymeacoffee](.assets/buymeacoffee.png)](https://www.buymeacoffee.com/michaelnabil230)[![Paypal](.assets/paypal.png)](https://www.paypal.com/paypalme/MichaelNabil23)\n\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Michael Nabil](https://github.com/MichaelNabil230)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelnabil230%2Flaravel-weather","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelnabil230%2Flaravel-weather","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelnabil230%2Flaravel-weather/lists"}