erekle / weather
There is no license information available for the latest version (dev-master) of this package.
Weather Api
dev-master
2017-12-14 06:34 UTC
Requires
- php: >=7
- guzzlehttp/guzzle: 6.*
- illuminate/support: 5.5.*
- nesbot/carbon: ^1.22
Requires (Dev)
- mockery/mockery: ^0.9.4
- orchestra/testbench: ~3.0
- phpunit/phpunit: ^6.4
This package is not auto-updated.
Last update: 2025-07-20 07:04:13 UTC
README
Installation Guide
Require this package in your composer.json and update composer.
composer require erekle/weather
After updating composer, add the ServiceProvider to the providers array in config/app.php
Erekle\Weather\WeatherServiceProvider::class,
You can use the facade for shorter code. Add this to your aliases:
'Weather' => Erekle\Weather\Facades\Weather::class,
To publish the config settings in Laravel 5 use:
php artisan vendor:publish --provider="Erekle\Weather\WeatherServiceProvider::class"
This will add an weather.php config file to your config folder.
Usage
Get current weather by default values, these are in config/weather.php.
$currentWeather = Weather::get();