PHPackages                             greenter/greenter - 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. greenter/greenter

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

greenter/greenter
=================

Facturacion Electrónica SUNAT en Perú

v5.3.0(3w ago)34636.5k↑136.7%163[8 issues](https://github.com/thegreenter/greenter/issues)[4 PRs](https://github.com/thegreenter/greenter/pulls)1MITPHPPHP &gt;=7.4CI passing

Since Jul 27Pushed 3w ago32 watchersCompare

[ Source](https://github.com/thegreenter/greenter)[ Packagist](https://packagist.org/packages/greenter/greenter)[ Docs](https://greenter.dev/)[ Fund](https://yape.greenter.dev/)[ RSS](/packages/greenter-greenter/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (24)Versions (52)Used By (1)

[![Greenter](https://camo.githubusercontent.com/04df62c02eec94a6943238a1249f2468a1ba31e7411fa9ef9673a4d6bd91b933/68747470733a2f2f63646e2e6769616e73616c65782e6465762f696d616765732f6769746875622f677265656e7465722d69636f2e706e67)](https://camo.githubusercontent.com/04df62c02eec94a6943238a1249f2468a1ba31e7411fa9ef9673a4d6bd91b933/68747470733a2f2f63646e2e6769616e73616c65782e6465762f696d616765732f6769746875622f677265656e7465722d69636f2e706e67) Greenter
==================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#-greenter)

[![CI](https://github.com/thegreenter/greenter/workflows/CI/badge.svg)](https://github.com/thegreenter/greenter/workflows/CI/badge.svg)[![Codacy Badge](https://camo.githubusercontent.com/c34e3e606dd0fca977a5a4ee044376928913fc1ae1381d6515fdda4697175cb5/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6162303561303532363066653435326339626661653862663230653934643564)](https://www.codacy.com/gh/thegreenter/greenter?utm_source=github.com&utm_medium=referral&utm_content=thegreenter/greenter&utm_campaign=Badge_Grade)[![Type Cover](https://camo.githubusercontent.com/9f727fe627cbbe69ba808fbd012e8e6688507f00da98b65ed859cf740ce89e14/68747470733a2f2f73686570686572642e6465762f6769746875622f746865677265656e7465722f677265656e7465722f636f7665726167652e737667)](https://shepherd.dev/github/thegreenter/greenter)[![codecov](https://camo.githubusercontent.com/17f9a744ee14046144930b07a34a77fcc8154a4348d00341be7f8e72f69dae27/68747470733a2f2f636f6465636f762e696f2f67682f746865677265656e7465722f677265656e7465722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/thegreenter/greenter)[![Project Stats](https://camo.githubusercontent.com/93757e1c5b1beab62364abc51174d82839c169526de1e73520af455c77f354bf/68747470733a2f2f7777772e6f70656e6875622e6e65742f702f677265656e7465722f776964676574732f70726f6a6563745f7468696e5f62616467652e676966)](https://www.openhub.net/p/greenter)[![FOSSA Status](https://camo.githubusercontent.com/3e42e92b6d275bc7f1093be7fc17b7528860775db2867f9b1133ec300167ed95/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246746865677265656e746572253246677265656e7465722e7376673f747970653d736869656c64)](https://app.fossa.io/projects/git%2Bgithub.com%2Fthegreenter%2Fgreenter?ref=badge_shield)

Esta librería le permite implementar la **Facturación Electrónica** en Perú, desde los sistemas desarrollados por el contribuyente, el cual esta normado por SUNAT.
Greenter realiza la mayoría de tareas del proceso, genera el XML según el estándar UBL, firma el XML con el certificado digital, , realiza el envío del comprobante a los webservice de SUNAT y procesa el CDR (Comprobante de Recepción), además incluye otras herramientas de utilidad.

Puede ver una demostración en [@greenter/demo](https://github.com/thegreenter/demo).

[![Quality gate](https://camo.githubusercontent.com/4d7bddbb017d39d309c9c09156d1ab202b645dd41deebc05caa8b8e9cf6f507f/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f7175616c6974795f676174653f70726f6a6563743d746865677265656e7465725f677265656e746572)](https://sonarcloud.io/dashboard?id=thegreenter_greenter)

Requerimientos
--------------

[](#requerimientos)

- PHP `7.4` o superior
- Extensiones PHP: `soap`, `zlib`, `openssl`, `curl`.

Documentación
-------------

[](#documentación)

- Lee esta [guia](https://fe-primer.greenter.dev/) para conocer mas sobre facturación electrónica.
- Empieza con este [ejemplo basico con greenter](https://greenter.dev/starter/).
- Tienes dudas o necesitas ayuda puedes hacerlo desde [aqui](https://community.greenter.dev/).
- Puedes seguirnos en [Facebook](https://fb.me/thegreenter) para actualizaciones.

Community
---------

[](#community)

- [Forum](https://community.greenter.dev/)
- [Telegram](https://t.me/+EZKfH3D1cDtlNDE5)

API REST
--------

[](#api-rest)

Si trabajas con otro lenguaje de programación, puedes usar [Lycet](https://github.com/giansalex/lycet).

Soporte
-------

[](#soporte)

[![JetBrains](https://raw.githubusercontent.com/thegreenter/greenter/master/.github/jetbrains-3.png)](https://raw.githubusercontent.com/thegreenter/greenter/master/.github/jetbrains-3.png)

[JetBrains](https://jb.gg/OpenSource) apoya nuestro proyecto de código abierto, proporcionando licencias para utilizar su pack de productos.

License
-------

[](#license)

[![FOSSA Status](https://camo.githubusercontent.com/8bded3fdecac91e50452296b09fbab0b660ffa756054d0ea253d244bb0e4e051/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246746865677265656e746572253246677265656e7465722e7376673f747970653d6c61726765)](https://app.fossa.io/projects/git%2Bgithub.com%2Fthegreenter%2Fgreenter?ref=badge_large)

###  Health Score

67

—

FairBetter than 99% of packages

Maintenance95

Actively maintained with recent releases

Popularity52

Moderate usage in the ecosystem

Community33

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 97.3% 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 ~77 days

Recently: every ~170 days

Total

43

Last Release

24d ago

Major Versions

v1.0.3 → v2.0.02017-11-13

v2.1.3 → v3.0.02018-10-14

v3.0.0 → v4.0.02020-08-09

v4.4.0-beta.1 → v5.0.0-beta.12023-01-11

PHP version history (4 changes)v1.0.0-rc.1PHP &gt;=5.5.9

v4.0.0PHP ^7.2

4.2.0PHP &gt;=7.2

v5.0.0-beta.1PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe086524f65d72195ad5dfd938bcd0b06349581b48ec60c56c5ba654167c8f55?d=identicon)[giansalex](/maintainers/giansalex)

---

Top Contributors

[![giansalex](https://avatars.githubusercontent.com/u/14926587?v=4)](https://github.com/giansalex "giansalex (1455 commits)")[![thefantas](https://avatars.githubusercontent.com/u/2816602?v=4)](https://github.com/thefantas "thefantas (15 commits)")[![dlopez525](https://avatars.githubusercontent.com/u/22335567?v=4)](https://github.com/dlopez525 "dlopez525 (6 commits)")[![Jhamnerx](https://avatars.githubusercontent.com/u/30221273?v=4)](https://github.com/Jhamnerx "Jhamnerx (3 commits)")[![lecano](https://avatars.githubusercontent.com/u/5108807?v=4)](https://github.com/lecano "lecano (2 commits)")[![p3dr0tg](https://avatars.githubusercontent.com/u/9455244?v=4)](https://github.com/p3dr0tg "p3dr0tg (2 commits)")[![codersfree](https://avatars.githubusercontent.com/u/69337635?v=4)](https://github.com/codersfree "codersfree (2 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")[![Gildus](https://avatars.githubusercontent.com/u/72762?v=4)](https://github.com/Gildus "Gildus (1 commits)")[![gquispeg](https://avatars.githubusercontent.com/u/34018854?v=4)](https://github.com/gquispeg "gquispeg (1 commits)")[![jmanucornejo](https://avatars.githubusercontent.com/u/20428347?v=4)](https://github.com/jmanucornejo "jmanucornejo (1 commits)")[![lafi87](https://avatars.githubusercontent.com/u/62006140?v=4)](https://github.com/lafi87 "lafi87 (1 commits)")[![bitgandtter](https://avatars.githubusercontent.com/u/1316125?v=4)](https://github.com/bitgandtter "bitgandtter (1 commits)")[![djdnl13](https://avatars.githubusercontent.com/u/4283920?v=4)](https://github.com/djdnl13 "djdnl13 (1 commits)")[![EliuTimana](https://avatars.githubusercontent.com/u/11860802?v=4)](https://github.com/EliuTimana "EliuTimana (1 commits)")[![erajuan](https://avatars.githubusercontent.com/u/6233118?v=4)](https://github.com/erajuan "erajuan (1 commits)")[![ericsondev](https://avatars.githubusercontent.com/u/256768703?v=4)](https://github.com/ericsondev "ericsondev (1 commits)")

---

Tags

facturacion-electronicagreenterperuphpsunatubl20ubl21facturacion-electronicasunatperugreenter

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)[shopware/storefront

Storefront for Shopware

684.6M236](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)

PHPackages © 2026

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