hdvianna / php-entities
A php package with miscellaneous entities and their rules.
1.0.1
2020-03-28 21:48 UTC
Requires
- php: ~7.4
Requires (Dev)
- php: ~7.4
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2024-05-29 05:08:27 UTC
README
A php package with miscellaneous entities and their rules.
Installation
composer require hdvianna/php-entities
Entities List
- CPF: Brazilian individual taxpayer registry identification. This entity enforces the creation of valid CPFs
- Usage:
new CPF(<String composed by 11 numbers>);
- Example #1:
new CPF("28228228244"); //A valid CPF
- Example #2:
new CPF("28228228245"); //An invalid CPF. Will throw an InvalidCPFCheckDigitException.
- Usage: