PHPackages                             suramon/simple-xml-reader - 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. suramon/simple-xml-reader

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

suramon/simple-xml-reader
=========================

The power of SimpleXmlElement, combined with the resource-friendliness of XmlReader

1.2.2(8y ago)8105.2k↓22.2%6[1 PRs](https://github.com/SuRaMoN/simplexmlreader/pulls)1DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSEPHPPHP &gt;=5.3

Since Oct 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/SuRaMoN/simplexmlreader)[ Packagist](https://packagist.org/packages/suramon/simple-xml-reader)[ Docs](https://github.com/SuRaMoN/SimpleXmlReader)[ RSS](/packages/suramon-simple-xml-reader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (1)

SimpleXmlReader
===============

[](#simplexmlreader)

Interface for the PHP XML Pull parser XMLReader that adds super-simplified xpath functionality. This is ideal for reading huge xml files without the memory costs of other xml libraries (eg SImpleXMLElement).

[![Build Status](https://camo.githubusercontent.com/d9fa8a6222d84379b43ec07a80cca8982bb489cad70fa4c053eb035fc887d56f/68747470733a2f2f7472617669732d63692e6f72672f537552614d6f4e2f73696d706c65786d6c7265616465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/SuRaMoN/simplexmlreader)[![Build Status](https://camo.githubusercontent.com/f63882a002d34b89556d86fb30520ee7bed6dcb3a95772e64fc0df20558f311f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f537552614d6f4e2f73696d706c65786d6c7265616465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/SuRaMoN/simplexmlreader/)

Example
-------

[](#example)

source code:

```
$xml = SimpleXmlReader::openFromString('

			yes

			yes

			no

');

foreach($xml->path('root/animal') as $animal) {
	// $animal is of type SimpleXMLElelent
	// only the current iterated $animal is in memory, so huge xml files can be read, without much memory consumption
	echo "A {$animal->attributes()->type} has a tail? {$animal->hastail}!\n";
}
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~272 days

Recently: every ~287 days

Total

6

Last Release

3248d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/852196?v=4)[SuRaMoN](/maintainers/SuRaMoN)[@SuRaMoN](https://github.com/SuRaMoN)

---

Top Contributors

[![SuRaMoN](https://avatars.githubusercontent.com/u/852196?v=4)](https://github.com/SuRaMoN "SuRaMoN (3 commits)")[![hvt](https://avatars.githubusercontent.com/u/337754?v=4)](https://github.com/hvt "hvt (2 commits)")[![colinodell](https://avatars.githubusercontent.com/u/202034?v=4)](https://github.com/colinodell "colinodell (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/suramon-simple-xml-reader/health.svg)

```
[![Health](https://phpackages.com/badges/suramon-simple-xml-reader/health.svg)](https://phpackages.com/packages/suramon-simple-xml-reader)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[meyfa/php-svg

Read, edit, write, and render SVG files with PHP

54613.9M42](/packages/meyfa-php-svg)

PHPackages © 2026

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