2017 © Pedro Peláez
 

library openweathermap-php-api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

image

cloudstash/openweathermap-php-api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  • Tuesday, March 20, 2018
  • by bezdoom
  • Repository
  • 1 Watchers
  • 1 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 74 Forks
  • 0 Open issues
  • 25 Versions
  • 0 % Grown

The README.md

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., (*1)

Build Status Scrutinizer Quality Score codecov SensioLabsInsight, (*2)

Installation

This library can be found on Packagist. The recommended way to install and use this is through Composer., (*3)

composer require "cmfcmf/openweathermap-php-api"

Example call

<?php
use Cmfcmf\OpenWeatherMap;
use Cmfcmf\OpenWeatherMap\Exception as OWMException;

// Must point to composer's autoload file.
require 'vendor/autoload.php';

// Language of data (try your own language here!):
$lang = 'de';

// Units (can be 'metric' or 'imperial' [default]):
$units = 'metric';

// Create OpenWeatherMap object. 
// Don't use caching (take a look into Examples/Cache.php to see how it works).
$owm = new OpenWeatherMap('YOUR-API-KEY');

try {
    $weather = $owm->getWeather('Berlin', $units, $lang);
} catch(OWMException $e) {
    echo 'OpenWeatherMap exception: ' . $e->getMessage() . ' (Code ' . $e->getCode() . ').';
} catch(\Exception $e) {
    echo 'General exception: ' . $e->getMessage() . ' (Code ' . $e->getCode() . ').';
}

echo $weather->temperature;

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., (*4)

Contribute!

I'm happy about every pull request or issue you find and open to help making this API more awesome., (*5)

You can use Vagrant to kick-start your development. Simply run vagrant up, vagrant ssh and cd into /vagrant to start developing., (*6)

License

MIT — Please see the LICENSE file distributed with this source code for further information regarding copyright and licensing., (*7)

Please check out the following official links to read about the terms, pricing and license of OpenWeatherMap before using the service. - OpenWeatherMap.org - OpenWeatherMap.org/terms - OpenWeatherMap.org/appid, (*8)

The Versions

20/03 2018

dev-master

9999999-dev https://github.com/kulikovviktor/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

api free weather openweathermap owm

20/03 2018

v2.3.0

2.3.0.0 https://github.com/kulikovviktor/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

api free weather openweathermap owm

04/03 2018

dev-update-vagrant

dev-update-vagrant https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-xml *

 

The Development Requires

api free weather openweathermap owm

21/01 2018

v2.2.3

2.2.3.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

api free weather openweathermap owm

07/08 2017

v2.2.2

2.2.2.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

api free weather openweathermap owm

21/04 2017

v2.2.1

2.2.1.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

api free weather openweathermap owm

08/02 2017

v2.2.0

2.2.0.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

api free weather openweathermap owm

17/10 2016

v2.1.2

2.1.2.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

weather openweathermap weather api

17/04 2016

v2.1.1

2.1.1.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

weather openweathermap weather api

12/04 2016

v2.1.0

2.1.0.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

weather openweathermap weather api

31/01 2016

v2.0.11

2.0.11.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

weather openweathermap weather api

08/12 2015

v2.0.10

2.0.10.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

weather openweathermap weather api

08/10 2015

v2.0.9

2.0.9.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

weather openweathermap weather api

14/07 2015

v2.0.8

2.0.8.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

weather openweathermap weather api

23/06 2015

v2.0.7

2.0.7.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

weather openweathermap weather api

22/06 2015

2.0.6

2.0.6.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

weather openweathermap weather api

20/06 2015

v2.0.5

2.0.5.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

weather openweathermap weather api

03/06 2015

v2.0.4

2.0.4.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

weather openweathermap weather api

21/03 2015

v2.0.3

2.0.3.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

weather openweathermap weather api

18/06 2014

v2.0.2

2.0.2.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

A php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

weather openweathermap weather api

25/02 2014

v2.0.1

2.0.1.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

An php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

weather openweathermap weather api

23/01 2014

v2.0.0

2.0.0.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

An php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

weather openweathermap weather api

23/01 2014

v2.0.0-rc1

2.0.0.0-RC1 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

An php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

weather openweathermap weather api

31/08 2013

v1.1.0

1.1.0.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

An php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

weather openweathermap weather api

21/07 2013

v1.0.0

1.0.0.0 https://github.com/cmfcmf/OpenWeatherMap-PHP-Api

An php api to parse weather data from OpenWeatherMap.org. This api tries to normalise and abstract the data and remove inconsistencies.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

weather openweathermap weather api