https://github.com/thegreenter/demo
Ejemplos utilizando Greenter (UBL 2.1, SOAP, Firma digital, PDF, QR)
https://github.com/thegreenter/demo
facturacion-electronica greenter sunat
Last synced: 5 months ago
JSON representation
Ejemplos utilizando Greenter (UBL 2.1, SOAP, Firma digital, PDF, QR)
- Host: GitHub
- URL: https://github.com/thegreenter/demo
- Owner: thegreenter
- License: mit
- Created: 2017-11-14T17:18:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-06T17:22:22.000Z (over 2 years ago)
- Last Synced: 2023-12-06T18:33:04.131Z (over 2 years ago)
- Topics: facturacion-electronica, greenter, sunat
- Language: PHP
- Homepage: https://greenter-sample.herokuapp.com
- Size: 505 KB
- Stars: 57
- Watchers: 12
- Forks: 50
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#  Greenter Demo

[](https://github.com/thegreenter/demo)
[](https://github.com/thegreenter/demo/issues)
Ejemplos de comprobantes electrónicos empleando [Greenter](https://github.com/thegreenter/greenter).
:speech_balloon: Tienes preguntas, únete al [forum](https://community.greenter.dev/).
### Topics
- Generación de XML en el estándar UBL 2.0, 2.1
- Guia de Remisión Remitente (2022).
- Generación comprobantes de contingencia.
- Firma digital de XML
- Envío a servicio de SUNAT
- Procesamiento del CDR (Comprobante de Recepción)
- Extracción del Hash o Valor Resumen
- Representación Impresa, PDF, QR
### Pasos
**Requerimientos**
- `PHP 7.4` o superior
- Activar extensiones: `openssl`, `soap`, `curl`
Clonar el repositorio e instalar las dependencias.
```bash
git clone https://github.com/thegreenter/demo.git
cd demo
composer install --no-dev -o
```
### Ejecutar
Abrir la consola y ejecutar el siguiente comando.
```bash
php -S 0.0.0.0:8080
```
Finalmente navegar a http://localhost:8080/
> Los xml, pdf y cdr (archivos zip) seran guardados en la carptea `files`.