dereuromark/cakephp-geo

A CakePHP plugin around geocoding tools and helpers.

Installs: 168 666

Dependents: 4

Suggesters: 1

Security: 0

Stars: 50

Watchers: 6

Forks: 30

Open Issues: 0

Type:cakephp-plugin

pkg:composer/dereuromark/cakephp-geo


README

CI codecov Latest Stable Version Minimum PHP Version License Coding Standards Total Downloads

A CakePHP plugin to

  • geocode locations/ips and save the information (lat/lng) along with the records
  • reverse geocode data
  • querying geocoded data by distance (using custom finder)
  • display Google maps (dynamic and static)
  • display Leaflet maps (open-source alternative)
  • display static maps from multiple providers (Geoapify, Mapbox, Stadia, Google)

This branch is for CakePHP 5.1+. See version map for details.

Note that it uses the willdurand/geocoder library and therefore supports

  • 12+ address-based Geocoder providers
  • 10+ IP-based Geocoder providers

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

Also:

  • MySQL support
  • PostgreSQL support
  • SQLite support (for easy local testing)

And also:

  • GeocodedAddresses Table class for caching of API requests to prevent rate limits and speed up lookups.
  • NullProvider for testing without external API calls.

Demo

See Sandbox examples for live demos of the map helpers and the Geocoder behavior.

Installation & Docs