cakephp-geo

A CakePHP plugin around geocoding tools and helpers.

MIT License

Downloads
129.5K
Stars
47
Committers
32
cakephp-geo - 1.3.5

Published by dereuromark about 5 years ago

Improvements

Removed deprecations. Plugin is now CakePHP 3.6+.

cakephp-geo - 1.3.4

Published by dereuromark almost 6 years ago

Bugfixes

Use https for generated (image) URLs.

cakephp-geo - 1.3.3

Published by dereuromark almost 6 years ago

Bugfixes

Default to SSL enabled now, as it will otherwise issue errors.

cakephp-geo - 1.3.2

Published by dereuromark about 6 years ago

Bugfixes

Make sure URL HTTPS detection has a safer fallback.

cakephp-geo - 1.3.1

Published by dereuromark over 6 years ago

Bugfixes

Moved instantiation of Geocoder into behavior constructor.

cakephp-geo - 1.3.0

Published by dereuromark over 6 years ago

Included commits: https://github.com/dereuromark/cakephp-geo/compare/1.2.3...1.3.0

Improvements

CakePHP 3.6 compatibility.
Added PHPStan check and fixed small issues.

The plugin now also is CakePHP 3.5+.

cakephp-geo - 1.2.3

Published by dereuromark almost 7 years ago

Bugfixes

  • Allow relative URLs for GoogleMapHelper::icon() method.
cakephp-geo - 1.2.2

Published by dereuromark about 7 years ago

Bugfixes

Adjusted the escaping of URLs for new CakePHP 3.5.1 release.

cakephp-geo - 1.2.1

Published by dereuromark over 7 years ago

Improvements

Geocoder

  • Allow setting "locale" and "region" based on current PHP locale.
cakephp-geo - 1.2.0

Published by dereuromark over 7 years ago

CakePHP 3.4+ release

It now requires CakePHP 3.4+ - upgrade if you haven't yet!

Improvements

  • Added Google maps key for static maps if applicable.
  • Added new styles option for GoogleMapHelper dynamic maps ( see https://snazzymaps.com/ ).

Fixes

  • Fixed return types and annotations for GeocoderBehavior and alike.
cakephp-geo - Small fixes

Published by dereuromark over 7 years ago

The escaping wasn't always working out. Some methods double escaped.
This is now fixed, and the documentation is also improved incl some examples for custom HtmlHelper::link() calls.

cakephp-geo - GoogleMap helper refactoring

Published by dereuromark over 7 years ago

Improvements

Since 2016 the API key is required for the map to function.
This adds this.

It also cleans up merging of the configs and resetting per map:

  • Defaults are set up on helper instantiation based on dynamic options passed, Configure and defaults.
  • Each map() call resets to those defaults.

Finally it more safely generates HTML links and URLs to be outputted. The query strings so far could contain XSS vulnerable strings. Those are now properly encoded by default.

Cleanup

Sensor config is deprecated and has been removed.

A BC break is in the apiUrl() call:

  • The sensor argument as well as the others have been removed. It now uses an options array as argument.

This will only effect you if

  • you are not using autoScript true
  • you are not using the helper configs for setting the apiUrl options (if you pass arguments here)

An exception will inform you here about the issue. Please refactor that method usage.

cakephp-geo - Small merge fix for options

Published by dereuromark almost 8 years ago

It merges default configs as expected now for GoogleMap helper.

cakephp-geo - 3.x Small fixes

Published by dereuromark almost 8 years ago

And documentation updates.

cakephp-geo - First 3.x release

Published by dereuromark about 8 years ago

The main differences to the 2.x version are:

It internally uses a large FOSS lib willdurand/geocoder and therefore now supports

  • 12+ address-based Geocoder providers
  • 10+ IP-based Geocoder providers
  • 1 own IP based (free) Geocoder provider

Most of them also support reverse geocoding. And of course you can write your own providers on top.

Also new:

  • MySQL support
  • PostgreSQL support

And also:

  • GeocodedAddresses Table class for caching of API requests to prevent rate limits and speed up lookups.
cakephp-geo - Old release of current master

Published by dereuromark over 8 years ago

The development branch will soon be merged, thus you need to switch to this tag now if you are using master branch.

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