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.10(2w ago)0175↑125%4Apache-2.0PHPPHP 7.3 - 8.5

Since Oct 6Pushed 2w agoCompare

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

READMEChangelogDependencies (6)Versions (12)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

45

—

FairBetter than 91% of packages

Maintenance97

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

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

Recently: every ~33 days

Total

11

Last Release

15d 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 (10 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.8k269.7M322](/packages/masterminds-html5)[jms/serializer

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

2.3k141.9M928](/packages/jms-serializer)[jms/metadata

Class/method/property metadata management in PHP

1.8k160.2M98](/packages/jms-metadata)[jms/serializer-bundle

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

1.8k92.4M680](/packages/jms-serializer-bundle)[sabre/xml

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

55234.6M140](/packages/sabre-xml)[presta/sitemap-bundle

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

39610.0M37](/packages/presta-sitemap-bundle)

PHPackages © 2026

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