olek / weather
There is no license information available for the latest version (dev-master) of this package.
Simple weather API
dev-master
2018-11-07 14:02 UTC
This package is auto-updated.
Last update: 2026-03-08 10:21:34 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