PHPackages                             earthit/paxml - 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. earthit/paxml

ActiveLibrary

earthit/paxml
=============

Classes for emitting X\[HT\]ML.

2.0.0(2y ago)012.8k1MITPHPPHP &gt;=8.1

Since Aug 27Pushed 2y ago17 watchersCompare

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

READMEChangelogDependencies (2)Versions (11)Used By (1)

[![Build Status](https://camo.githubusercontent.com/ddd1aa2b4ac2de7bcc8140092468d745ea38042e99d174388361f26ef07b0dde/68747470733a2f2f7472617669732d63692e6f72672f45617274686c696e67496e7465726163746976652f5041584d4c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/EarthlingInteractive/PAXML)

PAXML: PHP Array \[representation of\] XML
==========================================

[](#paxml-php-array-representation-of-xml)

This is a tiny library for emitting XML. Or XHTML.

Its intended use is to replace HTML/PHP template code with something easier to read and write and manipulate.

e.g. instead of

```
Hi my name is
```

you would construct a PAXML value like:

```
$value = ['p', 'Hi my name is ', $name];
```

and then output it using

```
EarthIT_PAXML::emit($value);
```

If you need a Nife\_Blob, make one like so:

```
$blob = new EarthIT_PAXML_PAXMLBlob($value);
```

PAXML Values
------------

[](#paxml-values)

Scalars represent text.

Arrays represent elements.

The 0th element of an array gives the tag name.

Subsequent numerically-keyed elements of an array give sub-tags.

String-keyed elements of an array give attribute values.

Examples
--------

[](#examples)

```
['p', 'style'=>'color: green', 'I like ', ['span', 'style'=>'color: red', 'food'], '.']
```

Will be emitted as:

```
I like food.
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 95% 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 ~339 days

Recently: every ~764 days

Total

10

Last Release

861d ago

Major Versions

1.2.6 → 2.0.02024-01-08

PHP version history (4 changes)1.0.0PHP &gt;=5.2

1.2.1PHP &gt;=5.4

1.2.6PHP &gt;=5.3

2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/84f2846fb867825e6831a99f7ba5ca9301de56a424928e2c494f81c2c6061677?d=identicon)[TOGoS](/maintainers/TOGoS)

---

Top Contributors

[![TOGoS](https://avatars.githubusercontent.com/u/57142?v=4)](https://github.com/TOGoS "TOGoS (19 commits)")[![jrole0](https://avatars.githubusercontent.com/u/7505885?v=4)](https://github.com/jrole0 "jrole0 (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/earthit-paxml/health.svg)

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

PHPackages © 2026

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