定制 live-controls/autocep 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

live-controls/autocep

最新稳定版本:v1.2.4

Composer 安装命令:

composer require live-controls/autocep

包简介

Autofill CEP Form

README 文档

README

Release Version Packagist Version

THIS PROJECT WON'T BE UPDATED ANYMORE, USE ITS SUCCESSOR live-controls/autoaddress

An Input for CEP which would give you the informations for road, etc. based on CepAberto

Requirements

  • Laravel 9+
  • Livewire 2+

Translations

  • English (en)
  • German (de)
  • Brazilian Portuguese (pt_BR)

Installation

  1. Install AutoCep package
composer require live-controls/autocep

Content

  • GetCEP class
  • AutoCep input - @livewire('livecontrols-autocep')

Usage

First Step: You will need to create a CEPABERTO_TOKEN environment variable. You will get the token after registration from https://www.cepaberto.com/

Blade:

@livewire('livecontrols-autocep', [
'prefix' => 'student',
'titlesuffix' => '*',
'oldmodel' => $student,
'required' => true,
], key('autocep'))
  • prefix = The prefix is optional, but needed if you add more than one AutoCep component on a single page. It will be prefixroad etc. afterwards
  • titlesuffix = The suffix of the title, usually you'd set a * if they're required or such.
  • oldmodel = This is optional, if set, it will take the cep, street, bairro, uf and city of the model
  • required = If set to true it will set all inputs to "required"

From 1.1.6 on

  • areacodeName = The name/id of the areacode control (Default: areacode)
  • streetName = The name/id of the street control (Default: street)
  • numberName = The name/id of the housenumber control (Default: housenumber)
  • complementName = The name/id of the complement control (Default: complement)
  • areaName = The name/id of the area control (Default: area)
  • cityName = The name/id of the city control (Default: city)
  • ufName = The name/id of the UF/2-digit state control (Default: uf)
  • countryName = The name/id of the (hidden) country control (Default: country)

Important: In case you want to use more than one AutoCEP component, don't forget to add a "prefix" or change the areacodeName etc of the components so the informations won't be overwritten!

live-controls/autocep 适用场景与选型建议

live-controls/autocep 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 47 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 07 月 22 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 live-controls/autocep 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-07-22