Download the PHP package el-schneider/statamic-simple-address without Composer
On this page you can find all versions of the php package el-schneider/statamic-simple-address. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package statamic-simple-address
Disclaimer: Statamic Simple Address recently underwent a complete rewrite and is now under active development, so features and APIs may change.
Statamic Simple Address
A simple address autocomplete fieldtype for Statamic. Works out of the box with no API keys needed.
Simple by default – flexible when needed.
Features
- Zero-config setup – Uses Nominatim (OpenStreetMap) by default
- Backend routing – Requests go through your backend and are deduped
- Interactive map – Draggable marker with reverse geocoding
- YAML preview – View and verify stored data
- Any geocoder-php provider – Works with 30+ providers from geocoder-php. Pre-configured examples for Nominatim, Google Maps, and Mapbox
Quick Start
Add a Simple Address field to your blueprint.
The field stores a normalized address structure:
Note: The default Nominatim setup is ideal for local development. The public Nominatim server has a strict 1 req/sec limit and forbids autocomplete on the client side. For production, most users switch to Geoapify, Google, or Mapbox – all offer free tiers, but usage limits and terms vary.
Configuration
Control Panel Assets (Statamic v6)
If you install/update the addon via Composer, publish the Control Panel assets so Statamic can load the Vite manifest:
If you install via Statamic's addon installer, this is typically done automatically.
Works immediately with Nominatim as the default geocoder and OpenStreetMap raster tiles.
Map Tiles
Publish the config to customize map.tiles.light and map.tiles.dark:
Each configured layer accepts a url template and an options array passed directly to Leaflet. URL placeholders can use any matching option name, including key, apikey, access_token, or apiKey. Set dark to null to reuse the light layer in dark mode. The published config includes a commented CARTO example; set its required environment variable before enabling it.
Using a Different Provider
To switch from Nominatim to another provider:
- Install the provider package
- Publish the config and add/uncomment the provider entry
- Set the required environment variables
Google Maps
Mapbox
The published config includes commented examples for Google and Mapbox. For other providers, add an entry to config/simple-address.php:
See Geocoder PHP docs for available providers and their constructor arguments. Thanks to geocoder-php for making multi-provider geocoding easy.
All versions of statamic-simple-address with dependencies
statamic/cms Version ^5.0
geocoder-php/nominatim-provider Version ^5.8
geocoder-php/cache-provider Version ^4.0
guzzlehttp/guzzle Version ^7.10