Releases: programmatordev/openweathermap-php-api
v3.0.0
What's Changed
- Update libraries compatibility with latest PHP versions by @andrepimpao in #61
- Remove parameters validation by @andrepimpao in #62
- New Weather Overview endpoint by @andrepimpao in #63
- New AI Assistant resource by @andrepimpao in #64
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
Full rewrite, now based on the PHP API SDK library 🔥.
v2.0.0-rc.1
Full rewrite, now based on the PHP API SDK library 🔥.
v1.4.2
v1.4.1
What's Changed
- Fix abstract endpoint with cache enabled test by @andrepimpao in #50
- Change docblock to throw ApiErrorException by @andrepimpao in #51
- Refactor code by @andrepimpao in #52
- Improve objects documentation page readability by @andrepimpao in #53
- Refactor tests by @andrepimpao in #54
Full Changelog: v1.4.0...v1.4.1
v1.4.0
v1.3.0
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
v1.1.1
What's Changed
- Improve country code validation by @notprogrammator in #39
Full Changelog: v1.1.0...v1.1.1
v1.1.0
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