stonkeep/cpf-cnpj
Validate, format, and generate Brazilian CPF and CNPJ documents in Laravel. Includes ready-to-use validation rules, mask and formatting helpers, and clean value objects so you can handle tax IDs consistently across your application.
stonkeep/cpf-cnpj is a lightweight PHP package for working with Brazilian CPF and CNPJ documents. It implements the official check-digit algorithms so you can validate user input before it reaches your database, and it can normalize or format documents consistently across your application.
How can I help you explore Laravel packages today?