cpf_utility library

Generate, validate and format Brazilian CPF's.

cpf_utility is a simple library where you can:

  • Generate a CPF from a Brazilian state or not (in this case, the state will be random).
  • Validate a formatted or unformatted CPF.
  • Format or strip the format of a CPF.

Classes

Cpf
Cpf utility functions namespace

Enums

States
States represents the official 26 state codes of Brazil.