2017 © Pedro Peláez
 

library weather

Weather Api

image

erekle/weather

Weather Api

  • Thursday, December 14, 2017
  • by erekle
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Weather

Installation Guide

Require this package in your composer.json and update composer., (*1)

composer require erekle/weather

After updating composer, add the ServiceProvider to the providers array in config/app.php, (*2)

Erekle\Weather\WeatherServiceProvider::class,

You can use the facade for shorter code. Add this to your aliases:, (*3)

'Weather' => Erekle\Weather\Facades\Weather::class,

To publish the config settings in Laravel 5 use: bash php artisan vendor:publish --provider="Erekle\Weather\WeatherServiceProvider::class" This will add an weather.php config file to your config folder., (*4)

Usage

Get current weather by default values, these are in config/weather.php., (*5)

bash $currentWeather = Weather::get();, (*6)

The Versions

14/12 2017