dereuromark / cakephp-geo
A CakePHP plugin around geocoding tools and helpers.
Installs: 134 931
Dependents: 4
Suggesters: 0
Security: 0
Stars: 47
Watchers: 8
Forks: 30
Open Issues: 4
Type:cakephp-plugin
Requires
- php: >=8.1
- cakephp/cakephp: ^5.0.2
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.1
- psr/http-message: 2.0.x-dev as 1.0.0
- symfony/http-client: ^6.0 || ^7.0
- willdurand/geocoder: ^4.6.0
Conflicts
This package is auto-updated.
Last update: 2024-12-19 15:16:07 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)
This branch is for CakePHP 5.0+. 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.
Demo
See Sandbox examples for live demos of the GoogleMaps helper and the Geocoder behavior.