PHPackages                             metasyntactical/xml-tools - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. metasyntactical/xml-tools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

metasyntactical/xml-tools
=========================

Several XML tools for PHP

v0.1.1(11y ago)015[1 issues](https://github.com/MetaSyntactical/xml-tools/issues)MITPHPPHP &gt;= 5.5.0

Since Apr 5Pushed 11y ago2 watchersCompare

[ Source](https://github.com/MetaSyntactical/xml-tools)[ Packagist](https://packagist.org/packages/metasyntactical/xml-tools)[ RSS](/packages/metasyntactical-xml-tools/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

MetaSyntactical XML Tools
=========================

[](#metasyntactical-xml-tools)

[![Build Status](https://camo.githubusercontent.com/5207300304550dd44d5ff7c1d18029fcc6ed4a08631c9a492683ee60374aaac4/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4d65746153796e746163746963616c2f786d6c2d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/MetaSyntactical/xml-tools)[![Downloads this Month](https://camo.githubusercontent.com/f7067d685efa4db2fae8af89df93181f3b5178d6a839f39d54387c9e803bf07d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6d65746173796e746163746963616c2f786d6c2d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/metasyntactical/xml-tools)[![Latest stable](https://camo.githubusercontent.com/7c84a4d3e975a1a6d03177de32e93c0887b0d0d7fdfd6d9283dbae084c30e500/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d65746173796e746163746963616c2f786d6c2d746f6f6c732e7376673f7374796c653d666c61742d737175617265266c6162656c3d737461626c65)](https://packagist.org/packages/metasyntactical/xml-tools)[![Latest dev](https://camo.githubusercontent.com/948892c99559937130df08982310163887be4a4b9fdb90a9769cdc5be83c051b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f6d65746173796e746163746963616c2f786d6c2d746f6f6c732e7376673f7374796c653d666c61742d737175617265266c6162656c3d756e737461626c65)](https://packagist.org/packages/metasyntactical/xml-tools)

Several tools for handling of XML files in PHP. Currently includes the following tools:

- XML Stream Reader (with callable ability)

Install
-------

[](#install)

### Using Composer

[](#using-composer)

Require the library using composer:

```
$ composer require metasyntactical/xml-tools
```

Usage
-----

[](#usage)

### XML Stream Reader

[](#xml-stream-reader)

```
use MetaSyntactical\Xml\Reader\XmlStreamReader;
use MetaSyntactical\Xml\Reader\XmlPath;
use DOMElement;
use MetaSyntactical\Xml\XmlStream\FileXmlStream;

$reader = new XmlStreamReader();

// register callables
$reader->registerCallback(
    new XmlPath("/example/node"),
    function (DOMElement $element) {
        echo "Match";
    }
}

// parse file
$reader->parse(new FileXmlStream("/path/to/xml/file.xml");
```

Contribute
----------

[](#contribute)

You are very welcome to contribute to this component. Please follow the information found in (CONTRIBUTE.md)\[CONTRIBUTE.md\].

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

4107d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/461576?v=4)[Daniel Kreuer](/maintainers/dkreuer)[@dkreuer](https://github.com/dkreuer)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/metasyntactical-xml-tools/health.svg)

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

###  Alternatives

[symfony/lock

Creates and manages locks, a mechanism to provide exclusive access to a shared resource

514139.2M689](/packages/symfony-lock)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k51](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M208](/packages/illuminate-broadcasting)[logiscape/mcp-sdk-php

Model Context Protocol SDK for PHP

368116.8k12](/packages/logiscape-mcp-sdk-php)

PHPackages © 2026

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