cakephp-geo

A CakePHP plugin around geocoding tools and helpers.

MIT License

Downloads
129.5K
Stars
47
Committers
32
cakephp-geo - 3.4.2 Latest Release

Published by dereuromark 3 months ago

Fixes

  • Removed deprecations.

Included commits: https://github.com/dereuromark/cakephp-geo/compare/3.4.1...3.4.2

cakephp-geo - 3.4.1

Published by dereuromark 7 months ago

Fixes

  • Fixed up files bundled in release using gitattributes file.

Included commits: https://github.com/dereuromark/cakephp-geo/compare/3.4.0...3.4.1

cakephp-geo - 3.4.0

Published by dereuromark 8 months ago

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;
}]]);
cakephp-geo - 3.3.0

Published by dereuromark 8 months ago

Improvements

Added GeoCoordinate value object.

cakephp-geo - 2.3.0

Published by dereuromark 9 months ago

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.

cakephp-geo - 3.2.0

Published by dereuromark 10 months ago

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.

cakephp-geo - 3.1.1

Published by dereuromark 11 months ago

Fixes

Fixed up templates

cakephp-geo - 3.1.0

Published by dereuromark 11 months ago

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.

cakephp-geo - 3.0.0

Published by dereuromark 12 months ago

CakePHP 5 compatible release

Enjoy!

cakephp-geo - 3.0.0-RC

Published by dereuromark about 1 year ago

CakePHP 5 compatible pre-release

Please test, once confirmed we can release stable.

cakephp-geo - 2.2.1

Published by dereuromark about 1 year ago

Fixes

Fixed event propagation stopping for CakePHP 4 ORM callbacks which always needs a return type (bool).

cakephp-geo - 2.2.0

Published by dereuromark over 2 years ago

Improvements

  • CakePHP 4.2+
  • Remove deprecations
cakephp-geo - 2.1.0

Published by dereuromark over 3 years ago

Improvements

  • lat/lng fields can now be configured for Geocoder behavior - thanks to @ADmad
  • overwrite as false can be used to only set the lat/lng fields if not already provided - thanks to @ADmad
  • Allow coordinates value object for distance finder.
cakephp-geo - 2.0.1

Published by dereuromark over 3 years ago

Improvements

  • PHP 8 ready
  • Allow geocoding also in afterMarshal() event
cakephp-geo - 2.0.0

Published by dereuromark over 4 years ago

CakePHP 4 stable release

A CakePHP plugin to

  • geocode locations/IPs and save the information (lat/lng) along with the records
  • reverse geocode data
  • query geocoded data by distance (using custom finder)
  • display (Google) maps (dynamic and static)
cakephp-geo - 1.5.1

Published by dereuromark over 4 years ago

Fixes

  • Fixed up image size retrieval for GoogleMap helper icons
cakephp-geo - 2.0.0-beta

Published by dereuromark over 4 years ago

CakePHP 4 compatible pre-release

Please help to finalize for stable release.

cakephp-geo - 1.5.0

Published by dereuromark over 4 years ago

Fixes

Fixed default geocoder (Google) to work again by using POST instead of GET.

Improvements

  • Added a backend to test geocoding.
  • Added a backend to see and remove cache data (geocoded addresses).
  • CakePHP 3.8+ now.
cakephp-geo - 1.4.0

Published by dereuromark almost 5 years ago

Improvements

  • Added a new config addressFormat config representing the StringFormatter pattern used to parse the formattedAddress field.
  • Deprecated formatted_address config in favor of formattedAddress.
cakephp-geo - 1.3.6

Published by dereuromark almost 5 years ago

Bugfixes

PHP 7.4+ compatibility.

Package Rankings
Top 3.56% on Packagist.org
Badges
Extracted from project README
CI Coverage Status Minimum PHP Version Coding Standards