Skip to content

Releases: dereuromark/cakephp-geo

3.4.2

06 Aug 15:09
Compare
Choose a tag to compare

Fixes

  • Removed deprecations.

Included commits: 3.4.1...3.4.2

3.4.1

30 Mar 04:16
Compare
Choose a tag to compare

Fixes

  • Fixed up files bundled in release using gitattributes file.

Included commits: 3.4.0...3.4.1

3.4.0

29 Feb 04:54
5e07fa7
Compare
Choose a tag to compare

Improvements

Added closure support for address elements in Geocoder lookup.

Sometimes, you need to have more logic for a specific address field.
In this case you can use a closure to make dynamic lookups where needed.

$this->addBehavior('Geo.Geocoder', [ 'address' => ['street', 'postal_code', 'city', function (Event $entity) {
    if ($entity->country && $entity->country->id && $entity->country_id === $entity->country->id) {
        return $entity->country->name;
    }
    if ($entity->get('country_name')) {
        return $entity->get('country_name');
    }

    if ($entity->country_id) {
        $country = $this->Countries->get($entity->country_id);
        return $country->name;
    }

    return null;
}]]);

3.3.0

26 Feb 03:25
Compare
Choose a tag to compare

Improvements

Added GeoCoordinate value object.

2.3.0

08 Feb 11:40
a857712
Compare
Choose a tag to compare

Improvements

Removed deprecated php-http/cakephp-adapter dependency and directly use CakePHP Client class.

Make sure to remove this dependency on your project level if you have it included. This is required for the update to work.

Note: This plugin is now PHP 8.1+ also for CakePHP 4 due to this change. Make sure you have the required min PHP version before updating.

3.2.0

07 Jan 00:30
Compare
Choose a tag to compare

Improvements

Removed deprecated php-http/cakephp-adapter dependency and directly use CakePHP Client class.

Make sure to remove this dependency on your project level if you have it included. This is required for the update to work.

3.1.1

05 Dec 19:12
Compare
Choose a tag to compare

Fixes

Fixed up templates

3.1.0

27 Nov 20:50
Compare
Choose a tag to compare

Fixes

Fixed custom finders to leverage new named params.

Note: This has a BC breaking nature, but was necessary to fix up quickly after the 3.0 release.

3.0.0

09 Nov 16:43
Compare
Choose a tag to compare

CakePHP 5 compatible release

Enjoy!

3.0.0-RC

03 Oct 15:12
Compare
Choose a tag to compare

CakePHP 5 compatible pre-release

Please test, once confirmed we can release stable.