live-controls/autocep
最新稳定版本:v1.2.4
Composer 安装命令:
composer require live-controls/autocep
包简介
Autofill CEP Form
README 文档
README
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
- 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 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 47
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 27
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2023-07-22