marcellopato/cnpj-cpf-format

A simple library for formatting CNPJ and CPF numbers

Installs: 32

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/marcellopato/cnpj-cpf-format

dev-main 2023-02-06 13:10 UTC

This package is auto-updated.

Last update: 2025-12-06 19:12:16 UTC


README

This is a simple library to format and unformat CNPJ and CPF numbers in PHP.

Installation

To install this library, run the following command: composer require marcellopato/cnpj-cpf-format

Usage

Here's an example of how to use this library: use Marcellopato\CnpjCpfFormat\CnpjCpfFormat;

// Formatting a CNPJ number
$cnpj = '11222333000199';
$formattedCnpj = CnpjCpfFormat::formatCnpj($cnpj);

Acknowledgments

This library was made possible with the help of ChatGPT, created by OpenAI.