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.11(1mo ago)0212↑100%4Apache-2.0PHPPHP 7.3 - 8.5

Since Oct 6Pushed 1mo agoCompare

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

READMEChangelogDependencies (9)Versions (13)Used By (4)

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

44

—

FairBetter than 90% of packages

Maintenance91

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity51

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

Recently: every ~36 days

Total

12

Last Release

45d ago

PHP version history (2 changes)0.1.0PHP 7.3 - 8.0

0.1.10PHP 7.3 - 8.5

### 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 (11 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.8k280.1M361](/packages/masterminds-html5)[jms/serializer

Library for (de-)serializing data of any complexity; supports XML, and JSON.

2.3k144.1M963](/packages/jms-serializer)[jms/metadata

Class/method/property metadata management in PHP

1.8k162.7M99](/packages/jms-metadata)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k93.5M696](/packages/jms-serializer-bundle)[sabre/xml

sabre/xml is an XML library that you may not hate.

53135.4M149](/packages/sabre-xml)[presta/sitemap-bundle

A Symfony bundle that provides tools to build your application sitemap.

39610.2M39](/packages/presta-sitemap-bundle)

PHPackages © 2026

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