PHPackages                             sandcore-dev/xml-analyzer - 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. sandcore-dev/xml-analyzer

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

sandcore-dev/xml-analyzer
=========================

Analyze XML files to guess the range of values of attributes and text nodes

0.2.1(5y ago)07MITPHPPHP ^7.3

Since Feb 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sandcore-dev/xml-analyzer)[ Packagist](https://packagist.org/packages/sandcore-dev/xml-analyzer)[ RSS](/packages/sandcore-dev-xml-analyzer/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

XML Analyzer
============

[](#xml-analyzer)

Analyze one or more XML strings or files to guess the type and thus the range of values of attributes and node values.

Examples
--------

[](#examples)

```
$analyzer = new \SandcoreDev\XmlAnalyzer\XmlAnalyzer();

// Analyze one or more XML strings. More data is more accurate.
$result = $analyzer->process($xmlString, $anotherXmlString, ...$moreXmlStrings);

// Analyze one or more XML files. More data is more accurate.
$result = $analyzer->processFile($xmlFile, $anotherXmlFile, ...$moreXmlFiles);

// Available types are in src/Types/
$result->getType();

$result->getAttributes();
$result->getAttribute('foo');

$result->getChildren();
$child = $result->getChild('bar');

// Each (child) node has the same methods available
$child->getType();
$child->getAttributes();
$child->getChildren();
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

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

Total

3

Last Release

1917d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb448fbd228f435612aecb8a6494be13b05ff5250ce6f021a3b00caf1a70edab?d=identicon)[sandcore-dev](/maintainers/sandcore-dev)

---

Top Contributors

[![sandcore-dev](https://avatars.githubusercontent.com/u/32176563?v=4)](https://github.com/sandcore-dev "sandcore-dev (13 commits)")

---

Tags

phpxmlphpxml

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sandcore-dev-xml-analyzer/health.svg)

```
[![Health](https://phpackages.com/badges/sandcore-dev-xml-analyzer/health.svg)](https://phpackages.com/packages/sandcore-dev-xml-analyzer)
```

###  Alternatives

[m1/vars

Vars is a simple to use and easily extendable configuration loader with in built loaders for ini, json, PHP, toml, XML and yaml/yml file types. It also comes with in built support for Silex and more frameworks to come soon.

69124.2k1](/packages/m1-vars)[goetas/xsd2php-runtime

Convert XSD (XML Schema) definitions into PHP classes

493.3k](/packages/goetas-xsd2php-runtime)[bupy7/xml-constructor

The array-like constructor of XML document structure.

1337.9k](/packages/bupy7-xml-constructor)

PHPackages © 2026

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