Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
t
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Brazilian::FederalDocuments

Build Status GitPitch

Synopsis

use Brazilian::FederalDocuments;

if FederalDocuments::CPF(number => 6931987887).is-valid {
    say "Valid CPF!!!"
} else {
    say "Invalid CPF..."
}

if FederalDocuments::CNPJ(number => 394411000109).is-valid {
    say "Valid CNPF!!!"
} else {
    say "Invalid CNPF..."
}

Description

In Brazil, there are two numbers of documents used especially for financial transactions. For individuals, the CPF (Individual Persons Registry), and for companies, the CNPJ (National Registry of Legal Entities).

This module verifies that the numbers are valid.

COPYRIGHT

This library is free software; you can redistribute it and/or modify it under the terms of the MIT License.

About

Perl6 module for federal documents validations

Topics

Resources

License

Languages

  • Other 100.0%
You can’t perform that action at this time.