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
Requires
- php: >=8.1
- cakephp/cakephp: ^5.1.1
Requires (Dev)
- ext-intl: *
- ext-json: *
- dereuromark/cakephp-tools: ^3.0.0
- fig-r/psr2r-sniffer: dev-master
- geocoder-php/common-http: ^4.6.0
- geocoder-php/google-maps-provider: ^4.7.0
- geocoder-php/nominatim-provider: ^5.7
- geocoder-php/provider-implementation: ^1.0
- php-http/discovery: ^1.18.0
- php-http/message: ^1.16.0
- phpunit/phpunit: ^10.5 || ^11.5 || ^12.1
- psr/http-message: 2.0.x-dev as 1.0.0
- symfony/http-client: ^6.0 || ^7.0
- willdurand/geocoder: ^4.6.0 || ^5.0.0
Conflicts
- dev-master
- 3.7.0
- 3.6.1
- 3.6.0
- 3.5.2
- 3.5.1
- 3.5.0
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.1
- 3.1.0
- 3.0.0
- 3.0.0-RC
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.1
- 2.0.0
- 2.0.0-beta
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
- 0.1
- dev-feature/leaflet-helper
- dev-feature/timezone-by-coordinates
- dev-docs/testing-null-provider
- dev-fix/incomplete-class-cache
- dev-cake4
- dev-remove-deprecation
- dev-cake3
This package is auto-updated.
Last update: 2026-01-28 05:02:15 UTC
README
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.