PHPackages                             asmpkg/utility - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. asmpkg/utility

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

asmpkg/utility
==============

The XML library converts XML to Array, Array to XML.

1.0.2(10y ago)036MITPHPPHP &gt;=5.3

Since Oct 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/alexsmonte/Utility)[ Packagist](https://packagist.org/packages/asmpkg/utility)[ RSS](/packages/asmpkg-utility/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Utility
=======

[](#utility)

Composer: composer require asmpkg/utility

Português
Manipulação de XML para PHP

A biblioteca XML faz a conversão de XML para Array, de Array para XML.

A documentacao completa sobre como utilizar a biblioteca XML:

Importing Data to XML Class

$text = ' 1 &lt;title&gt;Best post&lt;/title&gt; ... '; $xml = Xml::build($text);

Local file
$xml = Xml::build('/home/awesome/unicorns.xml');

$data = \[ 'post' =&gt; \[ 'id' =&gt; 1, 'title' =&gt; 'Best post', 'body' =&gt; ' ... ' \] \]; $xml = Xml::build($data);

Importante: Esta class foi copiada da biblioteca Utility do framework Cakephp

English
XML handling for PHP

The XML library converts XML to Array, Array to XML.

Full documentation on how to use the XML library:
Importing Data to Xml Class

$text = ' 1 &lt;title&gt;Best post&lt;/title&gt; ... ';
$xml = Xml::build($text);

Local file
$xml = Xml::build('/home/awesome/unicorns.xml');

$data = \[ 'post' =&gt; \[ 'id' =&gt; 1, 'title' =&gt; 'Best post', 'body' =&gt; ' ... ' \] \];
$xml = Xml::build($data);

Important: This class was copied from the Utility Library Cakephp framework

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3870d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/923a03e29760a0f2dd2ff7095347ebcd4d7a4803048c33dc918f0fb73ceb42a1?d=identicon)[alexsmonte](/maintainers/alexsmonte)

---

Top Contributors

[![alexsmonte](https://avatars.githubusercontent.com/u/1400348?v=4)](https://github.com/alexsmonte "alexsmonte (11 commits)")

---

Tags

xmlarray

### Embed Badge

![Health badge](/badges/asmpkg-utility/health.svg)

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

###  Alternatives

[openlss/lib-array2xml

Array2XML conversion library credit to lalit.org

31052.5M47](/packages/openlss-lib-array2xml)[digitickets/lalit

GitHub copy of LaLit's XML2Array and Array2XML

721.3M6](/packages/digitickets-lalit)[hiraku/xml_builder

Simple DSL for building XML

141.6k1](/packages/hiraku-xml-builder)

PHPackages © 2026

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