PHPackages                             lmsaud/phpcpf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. lmsaud/phpcpf

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

lmsaud/phpcpf
=============

CPF verify for PHP 5.3

16PHP

Since Jan 9Pushed 8y agoCompare

[ Source](https://github.com/lmsaud/phpCPF)[ Packagist](https://packagist.org/packages/lmsaud/phpcpf)[ RSS](/packages/lmsaud-phpcpf/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

phpCPF
======

[](#phpcpf)

PHP class used to check if a given CPF number is valid and also get the brazilian state of the cpf number

Usage
-----

[](#usage)

```
require_once "CPF.php";
$cpf = new CPF(PUT_CPF_DIGITS_HERE);
if($cpf->isValid()) {
  echo "CPF is OK";
}
else {
  echo "CPF is NOT OK";
}

$uf = $cpf->getUF();
echo "STATE OF ORIGIN: " + $uf;

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35234339?v=4)[Lucas Saud](/maintainers/lmsaud)[@lmsaud](https://github.com/lmsaud)

---

Top Contributors

[![lmsaud](https://avatars.githubusercontent.com/u/35234339?v=4)](https://github.com/lmsaud "lmsaud (5 commits)")

### Embed Badge

![Health badge](/badges/lmsaud-phpcpf/health.svg)

```
[![Health](https://phpackages.com/badges/lmsaud-phpcpf/health.svg)](https://phpackages.com/packages/lmsaud-phpcpf)
```

###  Alternatives

[chaoswey/taiwan-id-validator

台灣身分證、統一編號驗證

319.9k](/packages/chaoswey-taiwan-id-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
