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

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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'
);