{"repo":"leandrocfe/filament-ptbr-form-fields","free":true,"listed":false,"github":"https://github.com/leandrocfe/filament-ptbr-form-fields","clone":"git clone https://github.com/leandrocfe/filament-ptbr-form-fields.git","description":"This package provides custom form fields for Filament (>=v2.17.28) that are commonly used in Brazilian web applications, such as CPF/CNPJ validation, phone number formatting, money with currency symbol, and CEP integration with ViaCep.","language":"PHP","stars":148,"topics":["filamentphp","laravel","php"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Brazilian pt-BR form fields. This package provides custom form fields for Filament that are commonly used in Brazilian web applications, such as CPF/CNPJ validation, phone number formatting, money with currency symbol, and CEP integration with ViaCep. This package uses LaravelLegends/pt-br-validator to validate Brazilian Portuguese fields. Installation You can install the package via Composer: Filament V2 - if you are using Filament v2.x, you can use this section Filament V3 - if you are using Filament v3.x, you can use this section Filament V4 - if you are using Filament v4.x, you can use this section Usage CPF / CNPJ To create a dynamic input that accepts either CPF or CNPJ, use: If you want to create an input that only accepts CPF or only accepts CNPJ, use: If you want to use a custom mask for the input, use the cpf() or cnpj() method with a string argument representing the desired mask: Validation Document uses LaravelLegends/pt-br-validator to validate Brazilian Portuguese fields by default - cpf ou cnpj cpf cnpj You can disable validation using the validation(false) method: Phone number To create a dynamic input that formats phone numbers with DDD, use: If you want to use a custom phone number format, use the mask() method with a string argument representing the desired format: Money To create a money input field, use the following syntax: This is suitable for use with decimal or float data types. Using Integer Values If you prefer to work with integer values, you can f","default_branch":null,"files":null,"tree":[],"storefront":"/r/leandrocfe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/leandrocfe/filament-ptbr-form-fields/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}