PHPackages                             anglemx/mexico-curp - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. anglemx/mexico-curp

ActiveGit[Utility &amp; Helpers](/categories/utility)

anglemx/mexico-curp
===================

PHP utility to handle Mexico's RENAPO (Registro Nacional de Población) CURP (Clave Única de Registro de Población)

v0.2.0(4y ago)012.3k—3.1%MITPHPPHP &gt;=7.2

Since Jan 8Pushed 4y ago2 watchersCompare

[ Source](https://github.com/Angle/mexico-curp)[ Packagist](https://packagist.org/packages/anglemx/mexico-curp)[ Docs](https://github.com/Angle/mexico-curp)[ RSS](/packages/anglemx-mexico-curp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Angle Mexico CURP
=================

[](#angle-mexico-curp)

PHP utility to handle Mexico's RENAPO (Registro Nacional de Población) CURP (Clave Única de Registro de Población)

CURP
----

[](#curp)

What is CURP? *Clave Única de Registro de Población* for the Mexican Population Registry: RENAPO *Registro Nacional de Población*.

How to Use
----------

[](#how-to-use)

#### Validate CURP strings

[](#validate-curp-strings)

The utility can be used to validate a CURP string.

```
echo (CURP::isValid('BAD-CURP-STRING') ? 'Yes' : 'No'); // No
```

Tests
-----

[](#tests)

```
php vendor/bin/phpunit tests/CurpTest.php
```

TO-DO
-----

[](#to-do)

- Finish writing up this README
- Extract data from the CURP (Date of Birth, Gender, State of Birth)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

###  Release Activity

Cadence

Every ~122 days

Total

2

Last Release

1469d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/936483?v=4)[Edmundo Fuentes](/maintainers/edmundofuentes)[@edmundofuentes](https://github.com/edmundofuentes)

---

Top Contributors

[![edmundofuentes](https://avatars.githubusercontent.com/u/936483?v=4)](https://github.com/edmundofuentes "edmundofuentes (3 commits)")

---

Tags

mexicoanglecurprenapo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/anglemx-mexico-curp/health.svg)

```
[![Health](https://phpackages.com/badges/anglemx-mexico-curp/health.svg)](https://phpackages.com/packages/anglemx-mexico-curp)
```

###  Alternatives

[eclipxe/cfdiutils

PHP Common utilities for Mexican CFDI 3.2, 3.3 &amp; 4.0

141129.9k6](/packages/eclipxe-cfdiutils)[phpcfdi/cfdi-sat-scraper

Web Scraping para extraer facturas electrónicas desde la página del SAT

9018.0k](/packages/phpcfdi-cfdi-sat-scraper)[phpcfdi/rfc

PHP library to deal with Mexican RFC

2562.4k3](/packages/phpcfdi-rfc)[phpcfdi/cfdi-cleaner

Clean up Mexican CFDI

1334.1k1](/packages/phpcfdi-cfdi-cleaner)

PHPackages © 2026

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