承接 inspiredminds/contao-address-verification 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

inspiredminds/contao-address-verification

Composer 安装命令:

composer require inspiredminds/contao-address-verification

包简介

Contao extension to provide an address verification module.

README 文档

README

This extension allows you to manage addresses in the back end which can then be verified against in the front end.

The extension provides a module where front end visitors can enter their address. This address will be verified against the stored addresses and different content will then be shown (or different redirects will be executed), depending on the verification result. The module also provides a simple autocomplete script by default. All the entered addresses in the back end will be provided for autocompletion on the street input field of the address. The chosen autocompleted result will be filled in in all input fields (street, number, apartment, city and country).

Address Management

Addresses are divided by Address Groups. Each address group has a name and you can also optionally define custom content via nodes that will be displayed when an address has been verified for the selected groups. Each address currently consists of the following properties:

  • Street
  • Number (house number)
  • Apartment (apartment number or living unit)
  • Postal code
  • City (Note: only the postal code will be used for verification)
  • Country (can optionally be included in the verification)

When editing an address group you also have the possibility to import addresses in bulk through a CSV file. The CSV file needs to have the following format:

street,number,apartment,postal code,city,country

The country, or city and country together, can be omitted from the CSV file.

Note: the country needs to be in the ISO 3166-1 Alpha-2 format, e.g. "at" for Austria, "de" for Germany, etc. (upper or lower case does not matter).

Front End Modules

The extension currently provides two modules in total: one for the actual address verification and one module to automatically redirect to a redirect page, if no address verification session was started yet.

Address verification

This module handles the actual address verification process and show the form as well as the subsequent content in the front end. It provides the following settings:

  • Address groups: addresses are grouped in the back end, similar to news archives for example. Select the address groups against which the entered address should be verified against.
  • Include country: includes the country in the output of the front end form and includes it also for the verification process itself.
  • Nodes: content to be shown for either a verified address or an unverified address.
  • Redirect page: redirects to the defined page directly, instead of showing the nodes based content.

Require address verification session

This module provides a possibility to redirect to a defined page in the front end, if no address verification session was started yet, i.e. if the front end visitor did not enter an address via the Address verification module yet. You can use this module to prevent access to certain pages in such a case.

Session Variable

Once a front end visitor has entered their address, a session will be started and the entered address is available via the address-verification session variable. This variable will contain an array consisting of the entered address, which can then be used in other places in your process.

Modify Form Event

The Address verification module provides an InspiredMinds\ContaoAddressVerification\Event\BuildAddressVerificationFormEvent event with which you can modify the form based on Haste\Form\Form. You can use this event to add additional form fields or validators etc. to the form.

Autocompletion

This extension integrates autoComplete.js for autocompletion, but does not integrate any of its CSS styles by default, as you need to take care of styling yourself. As a starting point you could download the autoComplete.js package and use one of its stylesheets for your own purposes. The stylesheets are also present under web/bundles/contaoaddressverification/css/, so you could also add the following code to a custom mod_address_verification template (or elsewhere):

// templates/mod_address_verification.html5
$GLOBALS['TL_CSS'][] = 'bundles/contaoaddressverification/css/autoComplete.02.css';
$this->extend('mod_address_verification');

Likewise, if you want to customize the JavaScript itself or the initialisation of the script, create your own copy of the mod_address_verification template and modify the JavaScript accordingly.

inspiredminds/contao-address-verification 适用场景与选型建议

inspiredminds/contao-address-verification 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 21 次下载、GitHub Stars 达 1, 最近一次更新时间为 2021 年 08 月 10 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 inspiredminds/contao-address-verification 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 inspiredminds/contao-address-verification 我们能提供哪些服务?
定制开发 / 二次开发

基于 inspiredminds/contao-address-verification 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 21
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 10
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2021-08-10