numero2/contao-storelocator
Composer 安装命令:
composer require numero2/contao-storelocator
包简介
Contao Plugin for managing stores (or in common address data) and providing a frontend-search based on geo data
README 文档
README
About
This extension offers the possibility to create multiple lists containing address data, contact information as well as opening times. From the Frontend the user can enter any possible address to see which stores are nearby (like on Google Maps). Read more
Important
With version 5, the complete Google Maps integration has been updated. The map display now uses the Google Maps Element, and the address search is handled via the Place Autocomplete Element. If you are using customized templates, they must be updated to ensure compatibility with the new implementation.
Screenshot
System requirements
- Contao 5.3 or newer
- Google API Key (optional)
Installation
- Install via Contao Manager or Composer (
composer require numero2/contao-storelocator) - Run a database update via the Contao Manager or using the contao:migrate command.
Using other providers
StoreLocator comes pre-bundled with a provider for Google Maps as well as OpenStreetMap Nominatim. If you want to use another provider you'll need to install additional packages:
| Package | Provider |
|---|---|
geocoder-php/bing-maps-provider |
Bing Maps |
geocoder-php/here-provider |
HERE Maps |
geocoder-php/open-cage-provider |
OpenCage |
Events
By default the importer will populate the model with the fields for the current row and the key provided in the first row of the file. For custom handling feel free to use the contao.storelocator_store_import event:
// src/EventListener/StoreImportListener.php namespace App\EventListener; use numero2\StoreLocatorBundle\Event\StoreImportEvent; use numero2\StoreLocatorBundle\Event\StoreLocatorEvents; use Symfony\Component\EventDispatcher\Attribute\AsEventListener; #[AsEventListener(StoreLocatorEvents::STORE_IMPORT)] class StoreImportListener { public function __invoke( StoreImportEvent $event ): void { // … } }
numero2/contao-storelocator 适用场景与选型建议
numero2/contao-storelocator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.59k 次下载、GitHub Stars 达 12, 最近一次更新时间为 2017 年 06 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 numero2/contao-storelocator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 numero2/contao-storelocator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 23
- 依赖项目数: 0
- 推荐数: 4
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2017-06-08
