Download the PHP package pyrrah/openweathermap-bundle without Composer
On this page you can find all versions of the php package pyrrah/openweathermap-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pyrrah/openweathermap-bundle
More information about pyrrah/openweathermap-bundle
Files in pyrrah/openweathermap-bundle
Package openweathermap-bundle
Short Description The simple way to obtain currently weather from OpenWeatherMap API, for Symfony 5 to 6.
License MIT
Homepage https://github.com/Pyrrah/OpenWeatherMapBundle
Informations about the package openweathermap-bundle
Pyrrah/OpenWeatherMap 🌞
This bundle allows you to easily get the weather for a city or a location, via the OpenWeatherMap service.
Requirements
- Symfony 5. to 7.
- API Key (APPID) from OpenWeatherMap²
- Dependencies:
Guzzle
²Please note that the free version of OpenWeatherMap restricts the number of calls per month. Please see documentation). For a large number of calls, I recommend to setting up a cache (not currently managed in this package).
Installation
-
To install this bundle, run the following Composer command :
- Check configuration file is correctly installed, and edit the default values with yours (Official API docs) :
Routing (optional)
If you don't want to expose the OpenWeatherMap API via your application, you can skip this section.
Configuration
This exposes the OpenWeatherMap API via
Usage
After installation and configuration, the service can be directly referenced from within your controllers.
Credits
- Pierre-Yves Dick
- All Contributors
License
This bundle is under the MIT license. For the full copyright and license information please view the License File that was distributed with this source code.