Simple weather package for Laravel.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 722d9d4 May 30, 2017
Failed to load latest commit information.
docs Add a little example image and a URL to where it is live Oct 10, 2014
public First commit Oct 10, 2014
src Fix typo Jan 13, 2015
tests First commit Oct 10, 2014
.gitignore First commit Oct 10, 2014
.travis.yml First commit Oct 10, 2014
LICENCE First commit Oct 10, 2014 Update May 30, 2017
composer.json First commit Oct 10, 2014
phpunit.xml First commit Oct 10, 2014

NOTICE This package no longer works as intended, the endpoint it uses no longer exists

Laravel Weather

Latest Stable Version Total Downloads

Just a simple weather package for Laravel.


To get the latest version of Laravel Weather simply require it in your composer.json file.

"torann/laravel-weather": "0.1.*@dev"

You'll then need to run composer install to download it and have the autoloader updated.

Once installed you need to register the service provider with the application. Open up app/config/app.php and find the providers key.

'providers' => [

NOTE: the is automatically registered during boot.

Publish package assets:

$ php artisan asset:publish torann/laravel-weather

Add the following to the page where the Laravel Weather widget script will be active:

{{ HTML::style('/packages/torann/laravel-weather/weather.css') }} 

If using Duct add this to the CSS manifest file:

 *= require torann/laravel-weather/weather.css


Rendering weather by point:

Weather::renderByPoint($lat, $lng)

Rendering weather by city name:

Weather::renderByName('Hamden, CT')


An live example can be seen on