PHPackages                             armd/mapping - 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. armd/mapping

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

armd/mapping
============

map json or xml file or API with yaml config file

02PHP

Since Nov 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/amaniarmd/mapping)[ Packagist](https://packagist.org/packages/armd/mapping)[ RSS](/packages/armd-mapping/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

mapping
=======

[](#mapping)

map JSON or XML file or API with YAML config file

how to install
==============

[](#how-to-install)

composer require armd/mapping

how to use
==========

[](#how-to-use)

if you have a JSON like below, and you want to change your "products" key to "merchandise" and also you want to change the first product's "description" key to "details":

```
{
    "products": [
        {
            "id": 1,
            "title": "iPhone 9",
            "description": "An apple mobile which is nothing like apple",
            "price": 549,
            "discountPercentage": 12.96,
            "rating": 4.69,
            "stock": 94,
            "brand": "Apple",
            "category": "smartphones",
            "thumbnail": "https://dummyjson.com/image/i/products/1/thumbnail.jpg",
            "images": [
                "https://dummyjson.com/image/i/products/1/1.jpg",
                "https://dummyjson.com/image/i/products/1/2.jpg",
                "https://dummyjson.com/image/i/products/1/3.jpg",
                "https://dummyjson.com/image/i/products/1/4.jpg",
                "https://dummyjson.com/image/i/products/1/thumbnail.jpg"
            ]
        }
    ],
    "total": 100,
    "skip": 0,
    "limit": 30
}

```

You should write your YAML file like this:

```
products:
  value: "merchendise"
  child:
    0:
      child:
        description:
          value: "details"

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

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/faa8a15ff3cc54126f4a8506fa80239fc53ae92ee4594795fa4e586b01722401?d=identicon)[amaniarmd](/maintainers/amaniarmd)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/armd-mapping/health.svg)

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

PHPackages © 2026

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