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"
use \QuickOrder\Weather\Weather;
$weather = Weather::getWeather(
'Odense'
);
$weatherForecast = Weather::getWeatherForecast(
'Odense'
);