PHPackages                             zoibana/xmlparser - 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. zoibana/xmlparser

ActiveLibrary

zoibana/xmlparser
=================

Simplexml wrapper

09PHP

Since Oct 10Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Xml\\Element
============

[](#xmlelement)

`zoibana\Xml\Element` class extends the SimpleXmlElement class and adds few new methods

Initialization
--------------

[](#initialization)

```
 $xml = new zoibana\Xml\Element("

      123036

      32412

      53123

      9676253

      13687

 ");
```

Added methods
-------------

[](#added-methods)

### first()

[](#first)

retrieves the first element of requested tag elements list

```
 $firstOfferPrice = (int) $xml->offer->first()->price;
```

### last()

[](#last)

retrievs the last element of requested tag elements list

```
 $lastOfferPrice = (int) $xml->offer->last()->price;
```

### index($index)

[](#indexindex)

retrieves element with index $index of requested tag elements list

```
 $thirdOfferPrice = (int) $xml->offer->index(2)->price;
```

### attr($attr)

[](#attrattr)

returns the attribute value

```
 $idAttribute = $xml->offer->attr('id');
```

### column($tagname)`

[](#columntagname)

returns the array of tag values for each element

```
 $arrayOfOfferPrices = $xml->offer->column('price');
```

### attrColumn($tagname)

[](#attrcolumntagname)

returns the array of attribute values for each element

```
 $arrayAttributeIds = $xml->offer->attrColumn('id');
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3febe55f5a3511e02c8fd8d52bc56fa16f6ba3822acc50629646f31d91534d17?d=identicon)[zoibana](/maintainers/zoibana)

---

Top Contributors

[![zoibana](https://avatars.githubusercontent.com/u/5782615?v=4)](https://github.com/zoibana "zoibana (2 commits)")

### Embed Badge

![Health badge](/badges/zoibana-xmlparser/health.svg)

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

PHPackages © 2026

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