olek / weather
Simple weather API
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:metapackage
This package is auto-updated.
Last update: 2025-05-08 08:42:18 UTC
README
A simple weather package for Laravel
Installation
Require package by composer
composer require olek/weather
Service Provider
'providers' => [
...
Olekjs\Weather\ServiceProvider::class,
],
Facades
'aliases' => [
...
'Weather' => Olekjs\Weather\Facade::class,
],
Publish config
php artisan vendor:publish --provider=Olekjs\\Weather\\ServiceProvider
Package settings
Set your APPID in .env file
You can find the key on openweathermap page
WEATHER_APP_ID=your_appid
Usage
use Olekjs\Weather\Facade as Weather;
Weather::getByCity('London');
Weather::getByCoords(10,100);
Features
- Add a method that will change the units
- Add more opportunities to find the weather
- Add views for the weather