Skip to content

OpenWeatherMap-PHP-API 2.0.0

Compare
Choose a tag to compare
@cmfcmf cmfcmf released this 01 Feb 16:26
  • Weather history added, closes #3.
  • Autoloader removed, closes #6. It's strongly recommended to install this library via composer now.
  • Vendor name changed from cmfcmf to Cmfcmf.
  • new OpenWeatherMap() constructor changed. The first parameter now is an instance of a class implementing Cmfcmf/OpenWeatherMap/FetcherInterface, which is responsible for fetching data from urls. Two fetchers are implemented, the old one using file_get_contents($url) and a new one using cURL. If you do not specify a fetcher, cURL will be used if it's available.
  • The copyright string was removed from all classes and is now only available via OpenWeatherMap::COPYRIGHT.

Due to the BC-breaks, this is released as v2.0.0 (following SemVer).