ecce/laravel-weather is a Laravel package for laravel weather package.
It currently has 0 GitHub stars and 13 downloads on Packagist.
Install it with composer require ecce/laravel-weather.
Discover more Laravel packages by ecce
or browse all Laravel packages to compare alternatives.
Last updated
The Laravel Weather Package is a powerful tool for integrating weather forecast data into your Laravel application. It allows you to fetch weather data for a given IP address, display geo-location information, and present a 5-day weather forecast along with a map for visualization.
To get started with the Laravel Weather Package, follow these steps:
"minimum-stability": "dev",
composer require ecce/laravel-weather
php artisan vendor:publish --tag=laravel-weather-config
php artisan vendor:publish --tag=laravel-weather-assets
php artisan vendor:publish --tag=laravel-weather-views
return [
'api_key' => env('OPEN_WEATHER_API_KEY', ''),
];
use Ecce\LaravelWeather\Facades\LaravelWeather;
// Example: Fetch weather data for an IP address
$ipAddress = '123.45.67.89';
$weatherData = LaravelWeather::getDailyForecast($ipAddress);
$geoLocation = $weatherData['geoLocation'];
$forecast = $weatherData['forecast'];