PHP Classes

Validate CPF CNPJ: Validate Brazilian CPF and CNPJ numbers

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 264 All time: 7,760 This week: 182Up
Version License PHP version Categories
validate-cpf-cnpj 1.0GNU General Publi...5PHP 5, Validation


This package is specific mainly for applications used in Brazil Brazil .

This class can be used to validate brazilian CPF and CNPJ numbers.

It can take either CPF or CNPJ numbers and compute their checksum to determine if the numbers can be valid.

Picture of Mario Arroyo
Name: Mario Arroyo <contact>
Classes: 1 package by
Country: Brazil Brazil
Age: ???
All time rank: 3922316 in Brazil Brazil
Week rank: 658 Up44 in Brazil Brazil Up

  Files folder image Files  
File Role Description
Accessible without login HTML file doc.html Doc. The ValidateCpfCnpj PHP class documentation
Plain text file Services.class.php Class The ValidateCpfCnpj PHP class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:7,760
This week:182Up
User Comments (1)
use regex
13 years ago (Denis)