PHPackages                             hectordev15/xml-parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. hectordev15/xml-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

hectordev15/xml-parser
======================

Greenter XML Parser

v1.2.3(6y ago)07MITPHPPHP &gt;=5.5.9

Since Oct 6Pushed 6y agoCompare

[ Source](https://github.com/HectorDev15/greenter-xml-parser)[ Packagist](https://packagist.org/packages/hectordev15/xml-parser)[ Docs](https://github.com/giansalex/greenter-xml-parser)[ RSS](/packages/hectordev15-xml-parser/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (17)Used By (0)

XML Parser - Greenter
=====================

[](#xml-parser---greenter)

[![Travis-CI](https://camo.githubusercontent.com/c0502d05f423e56fd69ba95dfb92ac3bba3b04a7efd42bdaeac0297b866dd3b1/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6769616e73616c65782f677265656e7465722d786d6c2d7061727365722e7376673f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://travis-ci.org/giansalex/greenter-xml-parser)[![Packagist](https://camo.githubusercontent.com/5cd6bfb9758b04dc90259877d6d47718b0070ab02de3be751d29712752a22b25/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f677265656e7465722f786d6c2d7061727365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/greenter/xml-parser)

XML Parsers for [Greenter](https://github.com/giansalex/greenter).

Install
=======

[](#install)

Via composer from [packagist.org](https://packagist.org/packages/greenter/xml-parser)

```
composer require greenter/xml-parser
```

Example
-------

[](#example)

```
use Greenter\Xml\Parser\InvoiceParser;
require 'vendor/autoload.php';

$parser = new InvoiceParser();
$xml = file_get_contents('20000000001-01-F001-1.xml');
$invoice = $parser->parse($xml); // get an invoice.

var_dump($invoice);
```

Other parsers on [api documentation](https://codedoc.pub/giansalex/greenter-xml-parser/master/index.html).

Supported Documents
===================

[](#supported-documents)

- Factura Electrónica
- Boleta Electrónica
- Nota de Crédito Electrónica
- Nota de Débito Electrónica
- Recibo por Honorarios Electrónico
- Guia de Remisión Electrónica
- Retencion Electrónica
- Percepcion Electrónica
- Comunicacion de Baja
- Resumen Diario de Boletas

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 97.6% 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 ~41 days

Recently: every ~128 days

Total

16

Last Release

2516d ago

### Community

Maintainers

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

---

Top Contributors

[![giansalex](https://avatars.githubusercontent.com/u/14926587?v=4)](https://github.com/giansalex "giansalex (41 commits)")[![HectorDev15](https://avatars.githubusercontent.com/u/26526093?v=4)](https://github.com/HectorDev15 "HectorDev15 (1 commits)")

---

Tags

xmlparsersunatgreenter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hectordev15-xml-parser/health.svg)

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

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[imangazaliev/didom

Simple and fast HTML parser

2.2k2.3M64](/packages/imangazaliev-didom)[orchestra/parser

XML Document Parser for Laravel and PHP

4581.7M5](/packages/orchestra-parser)[laravie/parser

XML Document Parser for PHP

2342.1M8](/packages/laravie-parser)[greenter/xml

XML generación de documentos electrónicos, Facturacion Electrónica SUNAT - Perú

1151.0k3](/packages/greenter-xml)[goetas-webservices/xsd-reader

Read any XML Schema (XSD) programmatically with PHP

624.7M15](/packages/goetas-webservices-xsd-reader)

PHPackages © 2026

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