Download the PHP package otavio-araujo/filament-smart-cep without Composer
On this page you can find all versions of the php package otavio-araujo/filament-smart-cep. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download otavio-araujo/filament-smart-cep
More information about otavio-araujo/filament-smart-cep
Files in otavio-araujo/filament-smart-cep
Package filament-smart-cep
Short Description A FilamentPHP plugin that validates Brazilian postal codes (CEP) and automatically fills address fields (street, neighborhood, city, state, country) using ViaCEP as the primary source, with multiple API fallbacks for reliability.
License MIT
Homepage https://github.com/otavio-araujo/filament-smart-cep
Informations about the package filament-smart-cep
Filament Smart CEP

Filament Smart CEP is a plugin for FilamentPHP v4 that validates Brazilian postal codes (CEP) and automatically fills address fields with accurate data. It uses ViaCEP as the primary API, with multiple backup providers to ensure reliability and uptime.
Filament Compatibility
Compatible with Filament v4.
β¨ Features
- CEP validation with instant feedback.
- Automatic address filling: street, neighborhood, city, state, state abbreviation, country, and country abbreviation.
- Multiple API fallback: if ViaCEP is unavailable, the plugin tries alternative providers automatically.
- Seamless FilamentPHP integration β works out-of-the-box with Forms.
- Customizable field mapping to match your resource structure.
- Fast and lightweight β no heavy dependencies.
π How It Works
- User inputs a Brazilian postal code (CEP) in a Filament form.
- The plugin validates the code format.
- The plugin queries ViaCEP first.
- If ViaCEP fails, other APIs are used as fallback.
- Address fields are automatically populated.
π¦ Installation
You can install the package via composer:
βοΈ Configuration
You can customize:
- Which fields are auto-filled.
- Which field is going to receive focus after CEP autofill.
- Use prefix ou suffix action.
π Basic Usage
The custom field searches for CEP and fills up the form fields with the data returned by the web service.
By default, the fields that will be filled up are:
- street;
- neighborhood;
- city;
- state;
- state_code;
- ibge_code;
- country;
- and country_code.
By default, the number field is focused after field-autofill.

π·οΈ Using Custom Field Names
If you want to customize the fields that will be filled up, you can chain on the following methods:

βͺποΈβ© Customize Action's Button Icon and Position
If you want to customize the action's button icon and position, you can chain on the following methods:
![]()
π― Set Focus on an Input After Filling up the Fields
If you want to set focus on an input after filling up the fields, you can chain on the following methods:
π¨βπ» Code Quality
π Changelog
Please see CHANGELOG for more information on what has changed recently.
π€ Contributing
Please see CONTRIBUTING for details.
π‘οΈ Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
β Credits
- OtΓ‘vio AraΓΊjo
- All Contributors
π¨ License
The MIT License (MIT). Please see License File for more information.
All versions of filament-smart-cep with dependencies
filament/forms Version ^4.0
spatie/laravel-package-tools Version ^1.15.0