Skip to content
Perl6 module for federal documents validations
Other
  1. Other 100.0%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/Brazilian
logotype
t
.gitignore
.travis.yml
LICENSE
META6.json
PITCHME.md
README.md
camelia.png

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.

You can’t perform that action at this time.