thelia/insee-geo-module
Composer 安装命令:
composer require thelia/insee-geo-module
包简介
README 文档
README
Add insee_geo_department, insee_geo_municipality and insse_geo_region for France. Give departments and region hook.
Installation
Manually
- Copy the module into
<thelia_root>/local/modules/directory and be sure that the name of the module is INSEEGeo, - Activate it in your thelia administration panel
Composer
Add it in your main thelia composer.json file
composer require thelia/insee-geo-module:~0.1.2
Hook
{hook type="insee_geo.front.insert_select_city" formField="city" modulecode="INSEEGeo"}
Front Office Hook to show select-city form type in your form.
Loop
There are 2 loops :
[insee.geo.departement] : to give department, according to locale.
Input arguments
| Argument | Description |
|---|---|
| id | DB identifying, administrative number |
Output arguments
| Variable | Description |
|---|---|
| ID | DB identifying, administrative number |
| NAME | Department name |
| CREATED_AT | |
| UPDATE_AT |
[insee.geo.region] : to give region, according to locale.
Input arguments
| Argument | Description |
|---|---|
| id | DB identifying, INSEE code |
Output arguments
| Variable | Description |
|---|---|
| ID | DB identifying, INSEE code |
| NAME | Region name |
| CREATED_AT | |
| UPDATE_AT |
## Handler
[insee_geo.handler.insee_geo] : To give data in BackEnd.
getCityByZipCode to give city by zip code.
========================== == fr_FR ==
INSEE Geo
Ajoute les tables insee_geo_department, insee_geo_municipality et insee_geo_region pour la toute la France. Fournit des hook sur les départements et les régions (avant 1er janvier 2016).
Installation
Manually
- Copier le module dans le dossier
<thelia_root>/local/modules/et s'assurer que le nom du module est INSEEGeo, - Activer le dans le pannal d'administratiion de Thelia.
Composer
Ajouter le dans le fichier composer.json de Thelia
composer require thelia/insee-geo-module:~0.1.2
Hook
{hook type="insee_geo.front.insert_select_city" formField="city" modulecode="INSEEGeo"}
Hook niveau Front Office pour l'affiche du form type select-city dans votre formulaire
Loop
Il y a 2 loops :
[insee.geo.departement] : pour récupérer les départements, suivant la locale.
Input arguments
| Argument | Description |
|---|---|
| id | Identifiant BdD, numéro administratif |
Output arguments
| Variable | Description |
|---|---|
| ID | Identifiant BdD, numéro administratif |
| NAME | Nom du département |
| CREATED_AT | |
| UPDATE_AT |
[insee.geo.region] : pour récupérer les régions, suivant la locale.
Input arguments
| Argument | Description |
|---|---|
| id | Identifiant BdD, code INSEE |
Output arguments
| Variable | Description |
|---|---|
| ID | Identifiant BdD, code INSEE |
| NAME | Nom de la région |
| CREATED_AT | |
| UPDATE_AT |
## Handler
[insee_geo.handler.insee_geo] : Pour récupérer les données niveau BackEnd
getCityByZipCode pour récupérer le ville à partir du code postal.
thelia/insee-geo-module 适用场景与选型建议
thelia/insee-geo-module 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 342 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 10 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 thelia/insee-geo-module 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 thelia/insee-geo-module 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 342
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2015-10-22