Skip to content

Releases: programmatordev/openweathermap-php-api

v3.0.2

Choose a tag to compare

@andrepimpao andrepimpao released this 17 Feb 10:14
b6ac5a6

What's Changed

Full Changelog: v3.0.1...v3.0.2

v3.0.1

Choose a tag to compare

@andrepimpao andrepimpao released this 16 Dec 16:33
e73688e

What's Changed

Full Changelog: v3.0.0...v3.0.1

v3.0.0

Choose a tag to compare

@andrepimpao andrepimpao released this 09 Nov 13:13
daa000f

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

Choose a tag to compare

@andrepimpao andrepimpao released this 28 May 14:01
ccfaf1d

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

v2.0.0-rc.1

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

Choose a tag to compare

@andrepimpao andrepimpao released this 14 May 10:35
ccfaf1d

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

v1.4.2

Choose a tag to compare

@andrepimpao andrepimpao released this 06 Nov 17:02
b8f4919

What's Changed

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

v1.4.1

Choose a tag to compare

@andrepimpao andrepimpao released this 02 Nov 18:11
7408f02

What's Changed

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

v1.4.0

Choose a tag to compare

@andrepimpao andrepimpao released this 29 Aug 18:23
3e032b0

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

Choose a tag to compare

@andrepimpao andrepimpao released this 29 Aug 12:02
0f1e8d8

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

Choose a tag to compare

@andrepimpao andrepimpao released this 24 Aug 16:13
0419fa7

What's Changed

  • Improve cache handling by @notprogrammator in #41

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