avlima/php-cpf-cnpj-generator

Brazilian document generator

1.0.0 2022-01-13 21:58 UTC

This package is auto-updated.

Last update: 2024-04-14 18:10:41 UTC


README

Packagist PHP from Packagist GitHub license Total Downloads

Brazilian document generator for PHP

Star ⭐ repo to show suport 😊

Installation

Install Package

Require this package with composer:

composer require avlima/php-cpf-cnpj-generator

Usage

Add the class use Avlima\PhpCpfCnpjGenerator\Generator; to your file:

Generator::cpf();
- output: 84255523037

Generator::cpf(true);
- output: 842.555.230-37

Generator::cnpj();
- output: 14905492000179

Generator::cnpj(true);
- output: 14.905.492/0001-79

Thanks

## Support
Feel free to post your issues in the issues section.

## Credits
Developed by [Alberto Lima](https://github.com/avlima "Alberto Vieira de Lima")

## License
MIT