aducworth / openweather by aducworth

OpenWeatherMap API wrapper for Laravel 5
511
1
2
Package Data
Maintainer Username: aducworth
Maintainer Contact: aducworth@gmail.com (Austin Ducworth)
Package Create Date: 2016-11-10
Package Last Update: 2018-01-25
Home Page:
Language: PHP
License: Unknown
Last Refreshed: 2024-11-19 03:07:30
Package Statistics
Total Downloads: 511
Monthly Downloads: 21
Daily Downloads: 1
Total Stars: 1
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

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