2017 © Pedro Peláez
 

library laravel-weather

Simple weather forecaster for Laravel

image

torann/laravel-weather

Simple weather forecaster for Laravel

  • Tuesday, May 30, 2017
  • by torann
  • Repository
  • 3 Watchers
  • 26 Stars
  • 302 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 2 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

NOTICE This package no longer works as intended, the endpoint it uses no longer exists, (*1)

Laravel Weather

Latest Stable Version Total Downloads, (*2)

Just a simple weather package for Laravel., (*3)


Installation

To get the latest version of Laravel Weather simply require it in your composer.json file., (*4)

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

You'll then need to run composer install to download it and have the autoloader updated., (*5)

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

'providers' => [
    'Torann\LaravelWeather\ServiceProvider',
]

NOTE: the is automatically registered during boot., (*7)

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:, (*8)

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

If using Duct add this to the CSS manifest file:, (*9)

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

Rendering

Rendering weather by point:, (*10)

Weather::renderByPoint($lat, $lng)

Rendering weather by city name:, (*11)

Weather::renderByName('Hamden, CT')

Example

An live example can be seen on Snowcrew.org, (*12)

Example.png, (*13)

The Versions

30/05 2017

dev-master

9999999-dev

Simple weather forecaster for Laravel

  Sources   Download

BSD 2-Clause

The Requires

 

laravel weather forecast storms

10/10 2014

0.1.0

0.1.0.0

Simple weather forecaster for Laravel

  Sources   Download

BSD 2-Clause

The Requires

 

laravel weather forecast storms