PHPackages                             apolinux/xmltoxpath - 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. apolinux/xmltoxpath

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

apolinux/xmltoxpath
===================

tool to convert XML file into an array list of xpath

v1.04(6y ago)012PHPCI failing

Since Mar 19Pushed 6y ago1 watchersCompare

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

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

Xmltopath
=========

[](#xmltopath)

Converts simple XML document to xpath list

Returns a list of lines containing xpath routes. only works with tags, without attributes.

### Installation

[](#installation)

```
composer require apolinux/xmltoxpath

```

### Example

[](#example)

```
./vendor/bin/xmltoxpath path/to/xmlfile.xml

```

returns something like:

```
/movie/title
/movie/characters/character/name
/movie/characters/character/actor
/movie/characters/character/name
/movie/characters/character/actor
/movie/plot
/movie/great-lines/line
/movie/rating
/movie/rating

```

showing help:

```
./vendor/bin/xmltoxpath
Usage: xmltoxpath xmlfile [ u ]
Where:
 - xmlfile: is the xml filename to process
 - u      : if appears then only show unique results

```

### Unit Testing

[](#unit-testing)

```
phpunit --bootstrap ./test/bootstrap.php test/XmlToXpathTest.php
PHPUnit 6.2.3 by Sebastian Bergmann and contributors.

.                                                                   1 / 1 (100%)

Time: 89 ms, Memory: 10.00MB

OK (1 test, 2 assertions)

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

5

Last Release

2249d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eda0959d683679e20ca43b158749f3995de85cbfd8b03c52f6ff53a3765390b1?d=identicon)[apolinux](/maintainers/apolinux)

---

Top Contributors

[![apolinux](https://avatars.githubusercontent.com/u/2974082?v=4)](https://github.com/apolinux "apolinux (9 commits)")

---

Tags

phpxmlxpath

### Embed Badge

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

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

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[masterminds/html5

An HTML5 parser and serializer.

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

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[mck89/peast

Peast is PHP library that generates AST for JavaScript code

18834.7M29](/packages/mck89-peast)[ivopetkov/html5-dom-document-php

HTML5 DOMDocument PHP library (extends DOMDocument)

6031.4M49](/packages/ivopetkov-html5-dom-document-php)[ergebnis/json

Provides a Json value object for representing a valid JSON string.

2421.7M8](/packages/ergebnis-json)

PHPackages © 2026

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