{"id":16756458,"url":"https://github.com/ivansotelo/cfdistate","last_synced_at":"2025-04-10T16:51:01.619Z","repository":{"id":56994805,"uuid":"248334007","full_name":"IvanSotelo/CfdiState","owner":"IvanSotelo","description":"Consulta el estado de un cfdi en el webservice del SAT","archived":false,"fork":false,"pushed_at":"2020-10-01T18:36:33.000Z","size":159,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T14:41:42.586Z","etag":null,"topics":["cfdi","laravel","sat"],"latest_commit_sha":null,"homepage":"","language":"XSLT","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/IvanSotelo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-18T20:19:16.000Z","updated_at":"2023-03-05T08:00:21.000Z","dependencies_parsed_at":"2022-08-21T10:40:45.912Z","dependency_job_id":null,"html_url":"https://github.com/IvanSotelo/CfdiState","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanSotelo%2FCfdiState","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanSotelo%2FCfdiState/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanSotelo%2FCfdiState/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanSotelo%2FCfdiState/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IvanSotelo","download_url":"https://codeload.github.com/IvanSotelo/CfdiState/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248255891,"owners_count":21073409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","laravel","sat"],"created_at":"2024-10-13T03:25:56.846Z","updated_at":"2025-04-10T16:51:01.595Z","avatar_url":"https://github.com/IvanSotelo.png","language":"XSLT","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CfdiState\nConsulta el estado de un cfdi en el webservice del SAT\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://travis-ci.org/IvanSotelo/CfdiState\"\u003e\u003cimg src=\"https://travis-ci.org/IvanSotelo/CfdiState.svg?branch=master\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\u003ca href='https://coveralls.io/github/IvanSotelo/CfdiState?branch=master'\u003e\u003cimg src='https://coveralls.io/repos/github/IvanSotelo/CfdiState/badge.svg?branch=master' alt='Coverage Status' /\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/ivansotelo/cfdistate\"\u003e\u003cimg src=\"https://poser.pugx.org/ivansotelo/cfdistate/d/total.svg\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/ivansotelo/cfdistate\"\u003e\u003cimg src=\"https://poser.pugx.org/ivansotelo/cfdistate/v/stable.svg\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/ivansotelo/cfdistate\"\u003e\u003cimg src=\"https://poser.pugx.org/ivansotelo/cfdistate/license.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n### Instalación\n\nEjecutar en la terminal:\n\n```sh\ncomposer require ivansotelo/cfdistate\n```\n\nAgregar el Service Provider en `config/app.php`\n\n```php\n'providers' =\u003e [\n    ...\n    IvanSotelo\\CfdiState\\CfdiStateServiceProvider::class,\n];\n```\n\n### Configuración\n\n```shell\nphp artisan vendor:publish --provider=\"IvanSotelo\\CfdiState\\CfdiStateServiceProvider\" --tag=config\n```\n\nEn el archivo .env asignar el modo produccion.\n\n```.env\nCFDI_STATE_PRODUCTION_MODE=true\n```\n\n### Leer XML del CFDI\n\nPodemos recuperar la información del XML con la ayuda de nuestra clase \\IvanSotelo\\CfdiState\\CFDIState, con el que podras acceder a los nodos y atributos. ya sea con los nombres originales o con su traducción a ingles.\n\nEjemplo:\n\n```php\nuse IvanSotelo\\CfdiState\\CFDIState;\n\n...\n$cfdi = new CFDIState('/path/to/CFDI.xml');\n// Obtener información de un atributo (Con los nombres originales)\necho $cfdi-\u003eEmisor-\u003eRfc;\n// Ahora en ingles, minúsculas y en snake_case:\necho $cfdi-\u003etransmitter-\u003erfc;\n// Otras funciones:\necho $cfdi-\u003etoJson();\n```\n\n\n### Obtener estado del CFDI ante el SAT\n\nEl servicio entrega cuatro valores: estado de la consulta, estado del cfdi, estado de cancelabilidad y estado de cancelación.\n\nEjemplo:\n\n```php\nuse IvanSotelo\\CfdiState\\CFDIState;\n\n...\n$cfdi = new CFDIState('/path/to/CFDI.xml');\n// Obtener información de un atributo (Con los nombres originales)\necho $cfdi-\u003egetSatStatus();\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivansotelo%2Fcfdistate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivansotelo%2Fcfdistate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivansotelo%2Fcfdistate/lists"}