Download the PHP package cancio-labs/cnpj-validation-function without Composer
On this page you can find all versions of the php package cancio-labs/cnpj-validation-function. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cancio-labs/cnpj-validation-function
More information about cancio-labs/cnpj-validation-function
Files in cancio-labs/cnpj-validation-function
Download cancio-labs/cnpj-validation-function
More information about cancio-labs/cnpj-validation-function
Files in cancio-labs/cnpj-validation-function
Vendor cancio-labs
Package cnpj-validation-function
Short Description A function to validate a CNPJ (Brazilian Company ID)
License GPL-3.0-or-later
Homepage https://github.com/canciolabs/cnpj-validation-function
Package cnpj-validation-function
Short Description A function to validate a CNPJ (Brazilian Company ID)
License GPL-3.0-or-later
Homepage https://github.com/canciolabs/cnpj-validation-function
Please rate this library. Is it a good library?
Informations about the package cnpj-validation-function
CNPJ functions
This tiny package contains some functions to validate a CNPJ (Brazilian Company ID)
Requirements
PHP >= 8.0.0
Installation
composer require cancio-labs/cnpj-validation-function
Functions
- is_valid_cnpj
- assert_cnpj
How to use it
is_valid_cnpj(string $cnpj): bool
Returns true if the CNPJ is valid, false otherwise.
assert_cnpj(string $cnpj): void
Validates the CNPJ and throw an InvalidArgumentException if the CNPJ is not valid.
Running Tests
- From the project root, run:
vendor/bin/phpunit .
All versions of cnpj-validation-function with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0.0
The package cancio-labs/cnpj-validation-function contains the following files
Loading the files please wait ....