PHPackages                             alcamo/xml - 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. alcamo/xml

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

alcamo/xml
==========

XML syntax and expanded names

0.1.8(3mo ago)099↑150%3Apache-2.0PHPPHP 7.3 - 8.0

Since Oct 6Pushed 3mo agoCompare

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

READMEChangelogDependencies (3)Versions (10)Used By (3)

Class `Syntax`
==============

[](#class-syntax)

Constants for (fragments of) regular expressions corresponding to syntax productions in the XML specifications.

Class `XName`
=============

[](#class-xname)

Implementation of the concept of an [expanded name](https://www.w3.org/TR/xml-names/#dt-expname) in XML with namespaces.

The constructor simply takes a namespace name and a local name as input. For the sake of performance, the syntactic correctness of the parameters is not checked.

Static factory methods are provided to create expanded names, among others from a [qualified names](https://www.w3.org/TR/xml-names/#dt-qualname).

A `__toString()` method is provided to create strings from `XName`s, which are useful, among others, to use `XName`s as array indices.

Interface `HavingXNameInterface`
================================

[](#interface-havingxnameinterface)

Simple interface for objects (such as XML Schema items) that have an expanded name.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance81

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

Recently: every ~5 days

Total

9

Last Release

99d ago

### Community

Maintainers

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

---

Top Contributors

[![rv1971](https://avatars.githubusercontent.com/u/39520256?v=4)](https://github.com/rv1971 "rv1971 (8 commits)")

---

Tags

xmlsyntax

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  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)
