Ross ROSS = Recommend OSS · open-source software intelligence for agents

spatie/array-to-xml

A simple class to convert an array to xml observed · 2026-08-28

github.com/spatie/array-to-xml · homepage · PHP · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

81/100

  • Activity 89
  • Release rhythm 61
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 15.5
  • age_days: 4187
  • days_rel: 261
  • days_push: 68
  • n_releases_24m: 5

Full methodology

Adoption not part of the score

1199 stars · 216 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A small PHP library by Spatie that converts PHP arrays into XML strings using a single static method. It supports custom root elements, attribute handling, and key-name sanitization.

Use cases

  • convert php array to xml string
  • generate xml from nested array in php
  • serialize array as xml with attributes
  • set custom root element for xml output
  • produce xml api responses from php arrays

When to choose

  • you need a lightweight, dependency-free way to turn PHP arrays into XML
  • you want attribute and value support via simple array conventions
  • you're working in a PHP or Laravel project and need quick XML serialization

When to avoid

  • you need XML parsing or array-from-XML conversion (this only writes XML)
  • you need advanced XML features like namespaces, CDATA control, or streaming for huge documents

Facets

library · maturity stable

serialization files developer-tools apis php xml array-conversion php-package spatie

4 sources

Member repositories

RepositoryRoleHealth v2
spatie/array-to-xmlmain81

For agents

markdown · JSON · MCP: product_card(name="spatie/array-to-xml")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem