hdvianna/php-entities

A php package with miscellaneous entities and their rules.

Maintainers

Package info

github.com/hdvianna/php-entities

pkg:composer/hdvianna/php-entities

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

1.0.1 2020-03-28 21:48 UTC

This package is auto-updated.

Last update: 2026-02-27 22:43:05 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.