2017 © Pedro Peláez
 

library world-weather-online-laravel

Allows for easy usage of the Weather Online api in your Laravel application. Currently only the premium API is supported.

image

floodedcodeboy/world-weather-online-laravel

Allows for easy usage of the Weather Online api in your Laravel application. Currently only the premium API is supported.

  • Thursday, August 28, 2014
  • by floodedcodeboy
  • Repository
  • 1 Watchers
  • 4 Stars
  • 43 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

World Weather Online Package

This package is to interact with the World Weather Online API. It was developed for Laravel 4. It will return a temperature or the full weather object given a location., (*1)

Installation

  1. Install Composer: https://getcomposer.org/doc/00-intro.md
  2. Edit the composer.json file in your laravel project and add: "floodedcodeboy/world-weather-online-laravel": "dev-master" in the "require" section.
  3. Run "composer update"
  4. Get an API key with World Weather Online: http://developer.worldweatheronline.com/
  5. Edit the config.php file in vendor/floodedcodeboy/world-weather-online-laravel/src/config and put the API key in
  6. Add the Service provider in your app/config/app.php under 'providers': Floodedcodeboy\WorldWeatherOnline\WorldWeatherOnlineServiceProvider

Example Usage

In your app create the object, and call the appropriate functions., (*2)

$WorldWeatherOnline = App::make('worldweatheronline');

$location = 'London, UK';
$temperature = $WorldWeatherOnline::current_temp($location);
$condition = $WorldWeatherOnline::current_conditions($location);

$location2 = '-33.8678500, 151.2073200';
$temperature = $WorldWeatherOnline::current_temp($location2);
$condition = $WorldWeatherOnline::current_conditions($location2);

The Versions

28/08 2014

dev-master

9999999-dev

Allows for easy usage of the Weather Online api in your Laravel application. Currently only the premium API is supported.

  Sources   Download

Apache-2.0

The Requires

 

by Jacob Carthew-Gabriel

laravel laravel 4 world online weather

27/03 2014

v0.10

0.10.0.0

Allows for easy usage of the Weather Online api in your Laravel application. Currently only the premium API is supported.

  Sources   Download

Apache-2.0

The Requires

 

by Jacob Carthew-Gabriel

laravel laravel 4 world online weather

15/01 2014

v0.9

0.9.0.0

Allows for easy usage of the Weather Online api in your Laravel application. Currently only the premium API is supported.

  Sources   Download

Apache-2.0

The Requires

 

by Jacob Carthew-Gabriel

laravel laravel 4 world online weather