prrwebcreate / weather
A Laravel Package for Weather powered by openweathermap.org
Requires
- illuminate/support: ~7|~8
Requires (Dev)
- orchestra/testbench: ~5|~6
- phpunit/phpunit: ~9.0
This package is auto-updated.
Last update: 2024-09-23 02:34:38 UTC
README
Installation
Via Composer
$ composer require prrwebcreate/weather
Make sure you are using Bootstrap 5.
Usage
Simple Weather Widget powered by https://openweathermap.org/. Install package and configure default values (config/weather.php):
api_key = your api key from https://openweathermap.org/ time_interval = time between reloads
Weather information is saved in a database 'weather'.
To use a package, you need to call the "renderWeather($name = city name, ex. 'London',$lang = language, ex. 'en','pl')" helper function in a view; renderWeather('London','en')
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
License
license. Please see the license file for more information.