PHPackages                             clearswitch/dataconversion - 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. clearswitch/dataconversion

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

clearswitch/dataconversion
==========================

data conversion

0.0.2(2y ago)071MITPHP

Since Mar 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ClearSwicth/dataconversion)[ Packagist](https://packagist.org/packages/clearswitch/dataconversion)[ RSS](/packages/clearswitch-dataconversion/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

数据格式转换
======

[](#数据格式转换)

json,xml，array 数据之间的转换

创建新的请求实例
--------

[](#创建新的请求实例)

```
use ClearSwitch\DataConversion\DataConversion;

/**
 * $data需要的转换的数据（暂时只支持json,xml，array）
 *$type 需要转换的格式（暂时只支持json,xml，array）
 */
$obj=new DataConversion();
$obj->dataConversion($data,$type);
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

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

Every ~153 days

Total

2

Last Release

1004d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47359?v=4)[The Apache Software Foundation](/maintainers/Apache)[@apache](https://github.com/apache)

---

Top Contributors

[![ClearSwicth](https://avatars.githubusercontent.com/u/47941313?v=4)](https://github.com/ClearSwicth "ClearSwicth (13 commits)")

### Embed Badge

![Health badge](/badges/clearswitch-dataconversion/health.svg)

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

PHPackages © 2026

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