Download the PHP package cloudstash/openweathermap-php-api without Composer
On this page you can find all versions of the php package cloudstash/openweathermap-php-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cloudstash/openweathermap-php-api
More information about cloudstash/openweathermap-php-api
Files in cloudstash/openweathermap-php-api
Package openweathermap-php-api
Short Description A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.
License MIT
Homepage https://github.com/kulikovviktor/OpenWeatherMap-PHP-Api
Informations about the package openweathermap-php-api
OpenWeatherMap PHP API
A php API to retrieve and parse global weather data from OpenWeatherMap.org. This library aims to normalise the provided data and remove some inconsistencies. This library is neither maintained by OpenWeatherMap nor their official PHP API.
Installation
This library can be found on Packagist. The recommended way to install and use this is through Composer.
composer require "cmfcmf/openweathermap-php-api"
Example call
For more example code and instructions on how to use this library, please take
a look into the Examples
folder. Make sure to get an API Key from
http://home.openweathermap.org/ and put it into Examples/ApiKey.ini
.
CurrentWeather.php
Shows how to receive the current weather.WeatherForecast.php
Shows how to receive weather forecasts.WeatherHistory.php
Shows how to receive weather history.Cache.php
Shows how to implement and use a cache.
Contribute!
I'm happy about every pull request or issue you find and open to help making this API more awesome.
You can use Vagrant to kick-start your development.
Simply run vagrant up
, vagrant ssh
and cd
into /vagrant
to start
developing.
License
MIT — Please see the LICENSE file distributed with this source code for further information regarding copyright and licensing.
Please check out the following official links to read about the terms, pricing and license of OpenWeatherMap before using the service.