PHPackages                             seffeng/xml-helper - 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. seffeng/xml-helper

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

seffeng/xml-helper
==================

PHP extension xml helper

v0.1.0(3y ago)01.6k↓100%1MITPHPPHP &gt;=7.1

Since Aug 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/seffeng/php-xml-helper)[ Packagist](https://packagist.org/packages/seffeng/xml-helper)[ Docs](https://github.com/seffeng/php-xml-helper)[ RSS](/packages/seffeng-xml-helper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (1)

PHP Helpers
-----------

[](#php-helpers)

### 安装

[](#安装)

```
# 安装
$ composer require seffeng/xml-helper
```

### 目录说明

[](#目录说明)

```
|---src
|   |   Xml.php
|---tests
|       XmlTest.php

```

### 示例

[](#示例)

```
/**
 * TestController.php
 * 示例
 */
namespace App\Http\Controllers;

use Seffeng\XmlHelper\Xml;

class TestController extends Controller
{
    public function index()
    {
        $value = ['a' => ['id' => 1,'name' => 'aaa']];
        var_dump(Xml::toXml($value));
    }
}
```

### 备注

[](#备注)

1、更多示例请参考 tests 目录下测试文件。

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity31

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1353d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30b3d8cc986a1ad37a55169b11812fea1cae31430dd8dbe1b3436dc58cc885bd?d=identicon)[seffeng](/maintainers/seffeng)

---

Top Contributors

[![seffeng](https://avatars.githubusercontent.com/u/3509779?v=4)](https://github.com/seffeng "seffeng (1 commits)")

---

Tags

phplaravelxmlhelperslumenseffeng

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/seffeng-xml-helper/health.svg)

```
[![Health](https://phpackages.com/badges/seffeng-xml-helper/health.svg)](https://phpackages.com/packages/seffeng-xml-helper)
```

###  Alternatives

[rumenx/php-sitemap

Framework-agnostic Sitemap generator for PHP, Laravel, and Symfony.

1.3k15.1k1](/packages/rumenx-php-sitemap)[danharper/laravel-jsonx

Add XML support to a JSON-speaking Laravel API with a single middleware via JSONx

1857.2k](/packages/danharper-laravel-jsonx)

PHPackages © 2026

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