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

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

elementtree/elementtree
=======================

simple PHP XML-like tree

0.9.0(7y ago)2175[1 issues](https://github.com/koenhoeymans/ElementTree/issues)2BSD-2-ClausePHPPHP &gt;=7.2

Since Feb 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/koenhoeymans/ElementTree)[ Packagist](https://packagist.org/packages/elementtree/elementtree)[ RSS](/packages/elementtree-elementtree/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (25)Used By (2)

ElementTree
===========

[](#elementtree)

ElementTree is a PHP library for handling a tree of components which can be manipulated, searched and represented as a string. It resembles working with XML. However, this library was developed to solve a particular need I couldn't solve with the standard XML solutions in PHP. Therefore it does some things different from what one should and would expect from such a thing:

- Not nearly as feature-rich.
- Does not interfere with entities.
- No single root element necessary.
- Output attribute values between single or double quotes.
- No security checks.
- ...

Documentation can be found in the form of [this](https://github.com/koenhoeymans/ElementTree/blob/master/tests/e2e/DocumentationTest.php)end-to-end test.

Installation can be done with [composer](http://getcomposer.org/).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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 ~84 days

Recently: every ~399 days

Total

24

Last Release

2884d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.4.6

0.9.0PHP &gt;=7.2

### Community

Maintainers

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

---

Tags

xmltree

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[jms/serializer

Library for (de-)serializing data of any complexity; supports XML, and JSON.

2.3k135.8M851](/packages/jms-serializer)[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)[sabre/xml

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

52832.2M131](/packages/sabre-xml)[presta/sitemap-bundle

A Symfony bundle that provides tools to build your application sitemap.

3929.4M28](/packages/presta-sitemap-bundle)

PHPackages © 2026

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