Skip to main content

OpenWeatherMap PHP API

A PHP API to parse weather data and weather history from OpenWeatherMap.org.

Supports most free APIs

This project comes with support for five of the most popular free APIs:

  • Current Weather Data
  • 16-day/daily Forecast Data
  • 5-day/3-hourly Forecast Data
  • Air Pollution (CO, O3, SO2, NO2) Data
  • Ultraviolet Index Data

Easy to Use

The OpenWeatherMap APIs are poorly documented and oftentimes not easy to use. This project provides the necessary abstractions to make working with the API feel like a breeze.

Powered by modern PHP

Since version 3.x, this project works with PHP 7.x. It uses PSR-17 and PSR-18 for HTTP requests, as well as PSR-6 for caching.