Skip to content

codeallstar/laravel-weather

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Weather

Latest Stable Version Total Downloads

Just a simple weather package for Laravel.


Installation

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.

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

Rendering weather by point:

Weather::renderByPoint($lat, $lng)

Rendering weather by city name:

Weather::renderByName('Hamden, CT')

Example

An live example can be seen on Snowcrew.org

Example.png

About

Simple weather package for Laravel.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 87.3%
  • CSS 12.7%