spatie/statamic-algolia-places
Add an Algolia Places-powered location fieldtype to Statamic 3. Provides address autocomplete in the control panel and stores structured location data (city, country, lat/lng, postcode, etc.). Supports all Algolia Places configuration options.
{{ entry.location.name }})..env). No runtime setup logic is handled by the package.administrative, county fields). Customization requires overriding templates or extending the fieldtype..env).composer require spatie/statamic-algolia-places
fields.yaml):
fields:
location:
type: spatie/algolia-places
display: Address
config/statamic/fields.php or .env:
ALGOLIA_PLACES_API_KEY=your_key_here
| Scenario | Impact | Mitigation |
|---|---|---|
| Algolia API Down | Fieldtype broken in CP | Add a fallback UI (e.g., manual input). |
| Invalid API Key | Autocomplete fails silently | Validate key on install/config. |
| Statamic 4.x Upgrade | Package incompatible | Fork and update dependencies. |
| High API Usage | Cost overruns | Monitor usage; implement caching. |
How can I help you explore Laravel packages today?