{"id":36374923,"url":"https://github.com/phpcfdi/cfdi-expresiones","last_synced_at":"2026-01-11T14:14:54.647Z","repository":{"id":40614184,"uuid":"178121989","full_name":"phpcfdi/cfdi-expresiones","owner":"phpcfdi","description":"Genera expresiones de CFDI 4.0, CFDI 3.3, CFDI 3.2, RET 1.0 y RET 2.0","archived":false,"fork":false,"pushed_at":"2025-09-27T21:03:25.000Z","size":150,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-27T23:20:49.074Z","etag":null,"topics":["cfdi","cfdi40","mexico","sat"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phpcfdi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-03-28T03:48:42.000Z","updated_at":"2025-09-27T21:03:20.000Z","dependencies_parsed_at":"2025-04-14T05:32:35.000Z","dependency_job_id":null,"html_url":"https://github.com/phpcfdi/cfdi-expresiones","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/phpcfdi/cfdi-expresiones","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpcfdi%2Fcfdi-expresiones","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpcfdi%2Fcfdi-expresiones/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpcfdi%2Fcfdi-expresiones/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpcfdi%2Fcfdi-expresiones/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpcfdi","download_url":"https://codeload.github.com/phpcfdi/cfdi-expresiones/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpcfdi%2Fcfdi-expresiones/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28306988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T11:18:18.743Z","status":"ssl_error","status_checked_at":"2026-01-11T11:07:56.842Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cfdi","cfdi40","mexico","sat"],"created_at":"2026-01-11T14:14:53.913Z","updated_at":"2026-01-11T14:14:54.639Z","avatar_url":"https://github.com/phpcfdi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phpcfdi/cfdi-expresiones\n\n[![Source Code][badge-source]][source]\n[![Packagist PHP Version Support][badge-php-version]][php-version]\n[![Discord][badge-discord]][discord]\n[![Latest Version][badge-release]][release]\n[![Software License][badge-license]][license]\n[![Build Status][badge-build]][build]\n[![Reliability][badge-reliability]][reliability]\n[![Maintainability][badge-maintainability]][maintainability]\n[![Code Coverage][badge-coverage]][coverage]\n[![Violations][badge-violations]][violations]\n[![Total Downloads][badge-downloads]][downloads]\n\n\u003e Genera expresiones de CFDI 4.0, CFDI 3.3, CFDI 3.2, RET 1.0 y RET 2.0\n\n:us: The documentation of this project is in spanish as this is the natural language for intended audience.\n\n:mexico: La documentación del proyecto está en español porque ese es el lenguaje principal de los usuarios.\n\nEsta librería contiene objetos de ayuda para crear expresiones de CFDI 3.2, CFDI 3.3, CFDI 4.0, RET 1.0 y RET 2.0 \nde acuerdo a la información técnica del SAT en el Anexo 20.\n\nEstas expresiones se utilizan principalmente para dos motivos:\n\n1. Generar el código QR de una representación impresa de un CFDI o RET.\n2. Consultar el WebService del SAT de estado de un CFDI.\n\nEjemplo de expresión para CFDI 3.3 y CFDI 4.0:\n\nEstas especificaciones comparten el mismo estándar.\n\n```text\nhttps://verificacfdi.facturaelectronica.sat.gob.mx/default.aspx?id=CEE4BE01-ADFA-4DEB-8421-ADD60F0BEDAC\u0026re=POT9207213D6\u0026rr=DIM8701081LA\u0026tt=2010.01\u0026fe=/OAgdg==\n```\n\nEjemplo de expresión para CFDI 3.2:\n\n```text\n?re=AAA010101AAA\u0026rr=COSC8001137NA\u0026tt=0000001234.567800\u0026id=CEE4BE01-ADFA-4DEB-8421-ADD60F0BEDAC\n```\n\nEjemplo de expresión para RET 1.0:\n\n```text\n?\u0026re=XAXX010101000\u0026nr=12345678901234567890%tt=1234567890.123456\u0026id=ad662d33-6934-459c-a128-BDf0393f0f44\n```\n\nEjemplo de expresión para RET 2.0:\n\n```text\nhttps://prodretencionverificacion.clouda.sat.gob.mx/?id=AAAAAAAA-BBBB-CCCC-DDDD-000000000000\u0026re=Ñ\u0026amp;A010101AAA\u0026nr=0000000000000000000X\u0026tt=123456.78\u0026fe=qsIe6w==\n```\n\n## Instalación\n\nUsa [composer](https://getcomposer.org/)\n\n```shell\ncomposer require phpcfdi/cfdi-expresiones\n```\n\n## Ejemplo básico de uso\n\n```php\n\u003c?php\nuse PhpCfdi\\CfdiExpresiones\\DiscoverExtractor;\n\n// creamos el extractor\n$extractor = new DiscoverExtractor();\n\n// abrimos el documento en un DOMDocument\n$document = new DOMDocument();\n$document-\u003eload('archivo-cfdi.xml');\n\n// obtenemos la expresión\n$expression = $extractor-\u003eextract($document);\n\n// y también podemos obtener los valores individuales\n$values = $extractor-\u003eobtain($document);\n```\n\n## Soporte\n\nPuedes obtener soporte abriendo un ticket en Github.\n\nAdicionalmente, esta librería pertenece a la comunidad [PhpCfdi](https://www.phpcfdi.com), así que puedes usar los\nmismos canales de comunicación para obtener ayuda de algún miembro de la comunidad.\n\n## Compatibilidad\n\nEsta librería se mantendrá compatible con al menos la versión con\n[soporte activo de PHP](https://www.php.net/supported-versions.php) más reciente.\n\nTambién utilizamos [Versionado Semántico 2.0.0](docs/SEMVER.md) por lo que puedes usar esta librería\nsin temor a romper tu aplicación.\n\n### Cambiar de la versión 2.0.0 a la versión 3.0.0\n\nLa versión `3.0.0` agrega un método a la interfaz `ExpressionExtractorInterface` por lo que es necesario crear una\nversión mayor. Puedes actualizar con confianza si no generaste alguna clase que implemente `ExpressionExtractorInterface`.\n\n## Contribuciones\n\nLas contribuciones con bienvenidas. Por favor lee [CONTRIBUTING][] para más detalles\ny recuerda revisar el archivo de tareas pendientes [TODO][] y el archivo [CHANGELOG][].\n\n## Copyright and License\n\nThe `phpcfdi/cfdi-expresiones` library is copyright © [PhpCfdi](https://www.phpcfdi.com/)\nand licensed for use under the MIT License (MIT). Please see [LICENSE][] for more information.\n\n[contributing]: https://github.com/phpcfdi/cfdi-expresiones/blob/main/CONTRIBUTING.md\n[changelog]: https://github.com/phpcfdi/cfdi-expresiones/blob/main/docs/CHANGELOG.md\n[todo]: https://github.com/phpcfdi/cfdi-expresiones/blob/main/docs/TODO.md\n\n[source]: https://github.com/phpcfdi/cfdi-expresiones\n[php-version]: https://packagist.org/packages/phpcfdi/cfdi-expresiones\n[discord]: https://discord.gg/aFGYXvX\n[release]: https://github.com/phpcfdi/cfdi-expresiones/releases\n[license]: https://github.com/phpcfdi/cfdi-expresiones/blob/main/LICENSE\n[build]: https://github.com/phpcfdi/cfdi-expresiones/actions/workflows/build.yml?query=branch:main\n[reliability]:https://sonarcloud.io/component_measures?id=phpcfdi_cfdi-expresiones\u0026metric=Reliability\n[maintainability]: https://sonarcloud.io/component_measures?id=phpcfdi_cfdi-expresiones\u0026metric=Maintainability\n[coverage]: https://sonarcloud.io/component_measures?id=phpcfdi_cfdi-expresiones\u0026metric=Coverage\n[violations]: https://sonarcloud.io/project/issues?id=phpcfdi_cfdi-expresiones\u0026resolved=false\n[downloads]: https://packagist.org/packages/phpcfdi/cfdi-expresiones\n\n[badge-source]: https://img.shields.io/badge/source-phpcfdi/cfdi--expresiones-blue.svg?logo=github\n[badge-php-version]: https://img.shields.io/packagist/php-v/phpcfdi/cfdi-expresiones?logo=php\n[badge-discord]: https://img.shields.io/discord/459860554090283019?logo=discord\n[badge-release]: https://img.shields.io/github/release/phpcfdi/cfdi-expresiones.svg??logo=git\n[badge-license]: https://img.shields.io/github/license/phpcfdi/cfdi-expresiones.svg?logo=open-source-initiative\n[badge-build]: https://img.shields.io/github/actions/workflow/status/phpcfdi/cfdi-expresiones/build.yml?branch=main\u0026logo=github-actions\n[badge-reliability]: https://sonarcloud.io/api/project_badges/measure?project=phpcfdi_cfdi-expresiones\u0026metric=reliability_rating\n[badge-maintainability]: https://sonarcloud.io/api/project_badges/measure?project=phpcfdi_cfdi-expresiones\u0026metric=sqale_rating\n[badge-coverage]: https://img.shields.io/sonar/coverage/phpcfdi_cfdi-expresiones/main?logo=sonarqubecloud\u0026server=https%3A%2F%2Fsonarcloud.io\n[badge-violations]: https://img.shields.io/sonar/violations/phpcfdi_cfdi-expresiones/main?format=long\u0026logo=sonarqubecloud\u0026server=https%3A%2F%2Fsonarcloud.io\n[badge-downloads]: https://img.shields.io/packagist/dt/phpcfdi/cfdi-expresiones.svg?logo=packagist\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpcfdi%2Fcfdi-expresiones","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpcfdi%2Fcfdi-expresiones","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpcfdi%2Fcfdi-expresiones/lists"}