elementtree/elementtree

simple PHP XML-like tree

Maintainers

Package info

github.com/koenhoeymans/ElementTree

pkg:composer/elementtree/elementtree

Statistics

Installs: 175

Dependents: 2

Suggesters: 0

Stars: 2

Open Issues: 1

0.9.0 2018-06-26 06:00 UTC

This package is auto-updated.

Last update: 2026-03-29 00:31:00 UTC


README

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 end-to-end test.

Installation can be done with composer.