cmfcmf/OpenWeatherMap-PHP-API

Why example code is wrong (not up-to-date)?

intarstudents opened this issue · 3 comments

Hi @intarstudents,

the example code actually is up to date. It refers to the current master version. You are probably (as you should!) using the latest released version which worked slightly different. Please refer to the README of version 2.0.x: https://github.com/cmfcmf/OpenWeatherMap-PHP-Api/tree/v2.0.11

I am going to release version 2.1 soon. It will be fully backwards compatible to version 2.0.11.

Ooo right. roger that.

I have now released version 2.1.0 which means you can now follow the master README and pass the API key as first parameter. 😄
Sorry for the inconvenience though 😕