Skip to content

Releases: programmatordev/openweathermap-php-api

v3.0.0

09 Nov 13:13
daa000f

Choose a tag to compare

What's Changed

Breaking Changes

Parameter validation for endpoints (like validating the given latitude/longitude before making the request) was removed. This is only relevant if you were catching validation exceptions.

Now the validation is performed by the native API itself and can be "catched" in the already existing API Error Exceptions.

As an alternative, and with its advantages (like adding your own error messages), you can use the programmatordev/fluent-validator (or any other validation library) to do the same:

try {
  Validator::range(-90, 90)->assert($latitude);
  Validator::range(-180, 180)->assert($longitude);

  $weather = $api->weather()->getCurrent($latitude, $longitude);
}
catch (ValidationFailedException $e) {
  // handle validation errors
}
catch (ApiErrorException $e) {
  // handle API errors
}

Full Changelog: v2.0.0...v3.0.0

v2.0.0

28 May 14:01
ccfaf1d

Choose a tag to compare

Full rewrite, now based on the PHP API SDK library 🔥.

v2.0.0-rc.1

14 May 10:35
ccfaf1d

Choose a tag to compare

v2.0.0-rc.1 Pre-release
Pre-release

Full rewrite, now based on the PHP API SDK library 🔥.

v1.4.2

06 Nov 17:02
b8f4919

Choose a tag to compare

What's Changed

Full Changelog: v1.4.1...v1.4.2

v1.4.1

02 Nov 18:11
7408f02

Choose a tag to compare

What's Changed

Full Changelog: v1.4.0...v1.4.1

v1.4.0

29 Aug 18:23
3e032b0

Choose a tag to compare

What's Changed

  • Wrong withCacheTtl test file name by @notprogrammator in #45
  • Add global base url by @notprogrammator in #46
  • Remove "with" prefix from traits by @notprogrammator in #47
  • Improve endpoints methods call by @notprogrammator in #48

Full Changelog: v1.3.0...v1.4.0

v1.3.0

29 Aug 12:02
0f1e8d8

Choose a tag to compare

What's Changed

  • Move endpoints to properties instead of methods by @notprogrammator in #43

Full Changelog: v1.2.0...v.1.3.0

v1.2.0

24 Aug 16:13
0419fa7

Choose a tag to compare

What's Changed

  • Improve cache handling by @notprogrammator in #41

Full Changelog: v1.1.1...v1.2.0

v1.1.1

16 Aug 16:52
ba6a2d7

Choose a tag to compare

What's Changed

  • Improve country code validation by @notprogrammator in #39

Full Changelog: v1.1.0...v1.1.1

v1.1.0

11 Aug 17:21
38b3137

Choose a tag to compare

What's Changed

  • Improved supported APIs page documentation by @notprogrammator in #36
  • Replace validation with library by @notprogrammator in #37

Full Changelog: v1.0.1...v1.1.0