hdvianna/php-entities

A php package with miscellaneous entities and their rules.

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/hdvianna/php-entities

1.0.1 2020-03-28 21:48 UTC

This package is auto-updated.

Last update: 2025-10-29 03:11:18 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.