aducworth/openweather

There is no license information available for the latest version (dev-master) of this package.

OpenWeatherMap API wrapper for Laravel 5

dev-master 2018-01-25 22:36 UTC

This package is not auto-updated.

Last update: 2024-09-14 20:04:08 UTC


README

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