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

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

trueme/mapping-array
====================

01PHP

Since Jan 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/quocvo87/MappingArray)[ Packagist](https://packagist.org/packages/trueme/mapping-array)[ RSS](/packages/trueme-mapping-array/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

| 1. Introduction
-----------------

[](#-1-introduction)

```
Package will help you buil a array with $key base on variable name
*Example* :
    1.1 You want to build array with key=>value to pass to a function
        + caculateFee(['fee' => $fee, 'tax' => $tax,
                        ['revenueProduct' => $revenueProduct, 'revenueSale' => $revenueSale]
                    ]);
    1.2 With MapArr(), you don't need to build array above
    1.3 Using MapArr
        + $mapArr = new MapArr;
        + caculateFee($mapArr->build([$fee, $tax, [$revenueProduct, $revenueSale]])->get());
        + you will get result as step1.1

```

| 2. Directory Struct
---------------------

[](#-2-directory-struct)

```
Root
|__src
|   |__Traits       -> support for String.php
|   |__MapArr.php   -> Main core to build array you need
|   |__Str.php      -> Handle String
|
|
|__index.php -> example call MapArr()->build()->get()
|
|__composer.json - define namespace

```

---

| 3. Step by step do it
-----------------------

[](#-3-step-by-step-do-it)

```
3.1 Clone/download MappingArray folder to your computer

3.2 Goto MappingArray folder > D:\YourFolder\MappingArray

3.3 Run composer: composer dumpautoload

3.4 Run file D:\YourFolder\MappingArray\index.php for test

```

---

| 4. Guide implement MappingArray
---------------------------------

[](#-4-guide-implement-mappingarray)

```
4.1 Import TrueMe\MapArr class
    example you have file D:\YourFolder\index2.php
        use TrueMe\MapArr;

4.2 New TrueMe\MapArr and use it
        D:\YourFolder\index2.php
            + $mapArr = new MapArr;
            + caculateFee($mapArr->build([$fee, $tax, [$revenueProduct, $revenueSale]])->get());

```

Search Google:
--------------

[](#search-google)

```
> Lazada TrueMe
> Youtube TrueMe
> Tiktok TrueMe

```

Tags:
-----

[](#tags)

```
#TrueMe     #TrueMeNews     #TrueMilk
#TiktokTrueme   #LazadaTrueme

```

Sites:
------

[](#sites)

>

>

>

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity20

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/0d1b86a6feb2c62e6f06052f615de8b3a8c5cef3b9c183b859729761926507aa?d=identicon)[quocvo87](/maintainers/quocvo87)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[devaly/wordpress-routes

Manage rewrites and routes in WordPress with this dead-simple plugin

101.3k](/packages/devaly-wordpress-routes)

PHPackages © 2026

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