PHPackages                             cimus/simplexmlreader - 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. cimus/simplexmlreader

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

cimus/simplexmlreader
=====================

Wrapper XMLReader class, for simple SAX-reading(and simple XPath-queries) of huge(testing over 1G file) xml.

v1.0.0(9y ago)085Public DomainPHPPHP &gt;=5.3.0

Since Jun 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Cimus/SimpleXMLReader)[ Packagist](https://packagist.org/packages/cimus/simplexmlreader)[ Docs](https://github.com/dkrnl/SimpleXMLReader)[ RSS](/packages/cimus-simplexmlreader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Simple XML Reader
=================

[](#simple-xml-reader)

Wrapper XMLReader() class, for simple **SAX**-reading(and simple **XPath**-queries) of **huge**(testing over 1G file) xml.

**Minimum the memory** usage of other xml libraries(SimpleXML, DOMXML).

Usage example 1:

```
$reader = new SimpleXMLReader;
$reader->open("big.xml");
$reader->registerCallback("by-node-name", function($reader) {
    $element = $reader->expandSimpleXml(); // copy of the current node as a SimpleXMLElement object
    $attributes = $element->attributes(); // read element attributes
    /* ... */
});
$reader->registerCallback("/by/xpath/query", function($reader) {
    $element = $reader->expandDomDocument(); // copy of the current node as a DOMNode object
    $attributes = $element->attributes(); // read element attributes
    /* ... */
});
$reader->parse();
$reader->close();
```

Usage example 2:

License: Public Domain

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.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 ~0 days

Total

2

Last Release

3620d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43394a16277274fdfca9ed612f731ba89a1d09f84967651b3d35071662989f96?d=identicon)[Cimus](/maintainers/Cimus)

---

Top Contributors

[![dkrnl](https://avatars.githubusercontent.com/u/734622?v=4)](https://github.com/dkrnl "dkrnl (28 commits)")[![Cimus](https://avatars.githubusercontent.com/u/10470794?v=4)](https://github.com/Cimus "Cimus (3 commits)")

---

Tags

xmliteratorXMLReaderSimpleXML

### Embed Badge

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

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

###  Alternatives

[dkrnl/simplexmlreader

Wrapper XMLReader class, for simple SAX-reading(and simple XPath-queries) of huge(testing over 1G file) xml.

112951.5k](/packages/dkrnl-simplexmlreader)[sabre/xml

sabre/xml is an XML library that you may not hate.

52832.2M131](/packages/sabre-xml)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M226](/packages/masterminds-html5)[halilim/xml-iterator

XML Reader to simplexml/array iterator with low memory usage and an acceptable level of ease of use.

21373.6k1](/packages/halilim-xml-iterator)[hakre/xmlreaderiterator

Iterators for PHP XMLReader for ease of parsing

60208.0k1](/packages/hakre-xmlreaderiterator)[fluentdom/fluentdom

A fluent api for the php dom extension.

337306.9k17](/packages/fluentdom-fluentdom)

PHPackages © 2026

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