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

ActiveLibrary

bileji/xml
==========

easy to read and write xml

1.0.0(10y ago)027MITPHPPHP &gt;=5.3.0

Since Mar 18Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

### XML 读写

[](#xml-读写)

```
$xmlIo = new XmlIO();

```

#### 读:

[](#读)

```
$xmlIo->read('./recipe.xml');

```

如果你有如下一个xml文件 './recipe.xml':

```

    5 minutes
    Ice Cream Sundae

            1
            nuts

            1
            cherry

```

你将得到这样一个数组:

```
array (
  'recipe' =>
  array (
    0 =>
    array (
      '@attributes' =>
      array (
        'keywords' => 'attribute',
      ),
      'preptime' => '5 minutes',
      'recipename' => 'Ice Cream Sundae',
      'ingredlist' =>
      array (
        'listitem' =>
        array (
          0 =>
          array (
            'quantity' => '1',
            'itemdescription' => 'nuts',
          ),
          1 =>
          array (
            'quantity' => '1',
            'itemdescription' => 'cherry',
          ),
        ),
      ),
    ),
  ),
)

```

#### 写:

[](#写)

```
$xmlIo->write('./recipe.xml', $xmldata);

```

注: xmldata数据格式参数读时的输出数组格式

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community1

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

3710d ago

### Community

### Embed Badge

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

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

PHPackages © 2026

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