Skip to content

Laravel package for fetching weather data

Notifications You must be signed in to change notification settings

quick-order/laravel-owm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Jacob Christiansen
Jun 5, 2024
2ef9e0e · Jun 5, 2024

History

25 Commits
Jun 11, 2020
Sep 10, 2020
Jun 11, 2020
Sep 10, 2020
Jun 5, 2024
Jun 11, 2020

Repository files navigation

Installation

Add github repository and package name to composer.json

{
    "require": {
         "quick-order/laravel-owm": "0.*"
     },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/quick-order/laravel-owm"
        }
    ]
}

And now lets install the package

composer install

You can publish the config file with:

php artisan vendor:publish --provider="QuickOrder\Weather\WeatherServiceProvider"

Usage

use \QuickOrder\Weather\Weather;

$weather = Weather::getWeather(
    'Odense'
);

$weatherForecast = Weather::getWeatherForecast(
    'Odense'
);