aducworth/openweather

OpenWeatherMap API wrapper for Laravel 5
776 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});

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

644,549,754 9,698
laravel/framework

The Laravel Framework.

598,760,099 34,966
laravel/tinker

Powerful REPL for the Laravel framework.

507,193,856 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

423,477,751 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

399,241,428 4,660