zerolfc / ecce-weather-forecast
:package_description
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/zerolfc/ecce-weather-forecast
Requires
- php: ^7.3
- illuminate/config: ^8.0|^9.0
- illuminate/console: ^8.0|^9.0
- illuminate/database: ^8.0|^9.0
- illuminate/http: ^8.0|^9.0
- illuminate/pagination: ^8.0|^9.0
- illuminate/support: ^8.0|^9.0
Requires (Dev)
- orchestra/testbench: ~6
- phpunit/phpunit: ~9.0
This package is auto-updated.
Last update: 2025-12-29 03:53:56 UTC
README
Weather Providers
This package is currently only supported two free weather API provider.
-
weatherapi.com - For free tier only shows 3 day daily weather.
-
open-meteo.com - does not support icon to represent the weather forecasted.
Installation
composer require zerolfc/ecce-weather-forecast
View
Depending on how you set your local server
http://{local-url}/forecast
Configuration
The default settings are set in config/ecce-weather-forecast.php. Publish the config copy the file to your own config:
php artisan vendor:publish --tag="ecce-weather-forecast.config"
php artisan vendor:publish --tag="ecce-weather-forecast.migrations"
.env
Add these variable to your .env file.
Supported providers are weatherapi or open-meteo.
WEATHER_FORECAST_PROVIDER=weatherapi
WEATHER_FORECAST_KEY=
Artisan
You can the weather forecast using artisan terminal
php artisan forecast:check {IP-address}
API
You can access the forecasted weather API by adding format=json query.
http://location:8080/forecast/{IP}?format=json