Search by

dereuromark / cakephp-geo

dereuromark

A CakePHP plugin around geocoding tools and helpers.

Package info

github.com/dereuromark/cakephp-geo

Homepage

Documentation

Type:cakephp-plugin

pkg:composer/dereuromark/cakephp-geo

Statistics

Installs: 201 328

Dependents: 3

Suggesters: 1

Stars: 51

Open Issues: 0


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)

Composer defines supported PHP and CakePHP versions. For older CakePHP applications, see the version map. Geocoding needs an optional provider package; map helpers and coordinate calculations can be used separately.

Also:

  • MySQL support
  • PostgreSQL support
  • SQLite support when built with SQL math functions enabled

And also:

  • GeocodedAddresses table for reusing geocoding results and reducing repeated API requests.
  • NullProvider for testing without external API calls.

Demo

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

Documentation

Full documentation lives at dereuromark.github.io/cakephp-geo.

A few good entry points:

The Markdown sources live in the docs directory of this repository.