aducworth/openweather

OpenWeatherMap API wrapper for Laravel 5
769 1
Install
composer require aducworth/openweather
PHP:>=5.3.0
Last Updated:Jan 25, 2018
Links: GitHub  ·  Packagist
Maintainer: aducworth

Open Weather

Laravel wrapper for Open Weather

http://openweathermap.org

##Installation

Via Composer

$ composer require aducworth/openweather:dev-master

##Service Provider 'Aducworth\Openweather\OpenweatherServiceProvider'

##Facade 'Openweather' => 'Aducworth\Openweather\Facades\Openweather'

Usage

Get current weather.

use Openweather;

$data = Openweather::byCity({appid},{city},{country=null});

$data = Openweather::byZip({appid},{zip});

$data = Openweather::byCoordinates({appid},{lat},{lon});