PHPackages                             xwesko/rfcfacilphp - 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. xwesko/rfcfacilphp

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

xwesko/rfcfacilphp
==================

Librería para calcular el Registro Federal de Contribuyentes en México (RFC)

00PHP

Since Aug 17Pushed 3y agoCompare

[ Source](https://github.com/xWesko/rfcfacilphp)[ Packagist](https://packagist.org/packages/xwesko/rfcfacilphp)[ RSS](/packages/xwesko-rfcfacilphp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![](logo.png)](logo.png)

RfcFacil PHP
============

[](#rfcfacil-php)

Librería para calcular el Registro Federal de Contribuyentes en México (RFC) - PHP

Uso
---

[](#uso)

```

    //Persona físicas
    $builder = new RfcBuilder();

    $rfc = $builder->name('Juan José')
        ->firstLastName('Cortés')
        ->secondLastName('Guzmán')
        ->birthday(3, 9, 1984)
        ->build()
        ->toString();

    echo $rfc;

    //Personas morales
    $builder = new RfcBuilder();

    $rfc = $builder->legalName('AUTOS PULLMAN, S.A. DE C.V.')
         ->creationDate(30, 9, 1964)
         ->build()
         ->toString();

    echo $rfc;
```

Download
--------

[](#download)

Con composer

```
    composer require juanjoc333/rfc-facil-php
```

Fuente
------

[](#fuente)

Esta librería se basa en documentación oficial obtenida por medio del IFAI (Instituto Federal de Acceso a la Información). El documento puede ser consultado en el sitio de [INFOMEX](https://www.infomex.org.mx/gobiernofederal/moduloPublico/moduloPublico.action) con el folio `0610100135506`.

Cabe advertir que sólo la Secretaría de Hacienda y Crédito Público, a través del Servicio de Administración Tributaria, es la única instancia que oficialmente asigna las claves de RFC a los contribuyentes que así lo soliciten, a partir de la aplicación de este procedimiento a la base de datos del Padrón de Contribuyentes, con la finalidad de identificar homonimias y evitar la duplicidad de registros.

En otros lenguajes
------------------

[](#en-otros-lenguajes)

- JAVA [josketres/rfc-facil](https://github.com/josketres/rfc-facil)
- Ruby [acrogenesis/rfc\_facil](https://github.com/acrogenesis/rfc_facil)
- NET [migsalazar/RfcFacil](https://github.com/migsalazar/RfcFacil)

Contribuciones
--------------

[](#contribuciones)

- Reporta errores o sugerencias en:

Agradecimientos
---------------

[](#agradecimientos)

RfcFacil PHP es una versión para PHP de la librería [rfc-facil](http://josketres.github.io/rfc-facil/) escrita por [josketres](https://github.com/josketres). Gracias!

Licencia
--------

[](#licencia)

Licensed under the Apache License, Version 2.0.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 89.5% 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://www.gravatar.com/avatar/684219984b680f09c50ca14745e69af8d30d991dad1ce53d3fb413e35120b1b4?d=identicon)[xWesko](/maintainers/xWesko)

---

Top Contributors

[![juanjoc333](https://avatars.githubusercontent.com/u/7155814?v=4)](https://github.com/juanjoc333 "juanjoc333 (17 commits)")[![xWesko](https://avatars.githubusercontent.com/u/43506296?v=4)](https://github.com/xWesko "xWesko (2 commits)")

### Embed Badge

![Health badge](/badges/xwesko-rfcfacilphp/health.svg)

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

###  Alternatives

[mnapoli/fluent-symfony

8036.6k](/packages/mnapoli-fluent-symfony)[phuml/phuml

phUML is a fully automatic UML class diagram generator for PHP code

11411.3k1](/packages/phuml-phuml)[tcb13/substringy

A sub string manipulation library with multibyte support that extends Stringy

1760.6k1](/packages/tcb13-substringy)[illuminatech/nova-config

A Laravel Nova tool for application configuration management.

134.2k](/packages/illuminatech-nova-config)[media24si/upn-generator

UPN form generator

152.3k](/packages/media24si-upn-generator)

PHPackages © 2026

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