PHPackages                             enrise/maparea - 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. enrise/maparea

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

enrise/maparea
==============

A data mapping library.

362PHP

Since Oct 8Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Enrise/Maparea)[ Packagist](https://packagist.org/packages/enrise/maparea)[ RSS](/packages/enrise-maparea/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Archived and unmaintained
=========================

[](#archived-and-unmaintained)

This is an old repository that is no longer used or maintained. We advice to no longer use this repository.

Original README can be found below:
-----------------------------------

[](#original-readme-can-be-found-below)

Maparea [![Travis build](https://camo.githubusercontent.com/46ccedfeb9e42d2d086563cbb1901a3100bfecd3ae1210d7d43396f5fb37518c/68747470733a2f2f6170692e7472617669732d63692e6f72672f456e726973652f4d6170617265612e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/46ccedfeb9e42d2d086563cbb1901a3100bfecd3ae1210d7d43396f5fb37518c/68747470733a2f2f6170692e7472617669732d63692e6f72672f456e726973652f4d6170617265612e7376673f6272616e63683d6d6173746572)
=============================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#maparea-)

This is a PHP mapping helper utility. It's useful when you want to convert a certain array-structure into another structure. The definitions could be declared in a yaml-structure, so it's easy to verify the input and of the mapping.

Definition
----------

[](#definition)

The definition is easiest done by using yaml. This project is using [JMESpath](http://github.com/mtdowling/jmespath.php), so you can define the mapping like this:

```
# route.yml
id:
  from: uuid
distance:
  from: plan.distance
  service_class: \Enrise\DistanceMapper
```

```
# map using route.yml
$mapper = new \Enrise\Maparea\Mapper();

$raw = [
    'uuid' => 'F2001E99-98E6-4C50-A965-C694EC44B810',
    'plan' => [
        'distance' => 1223
    ]
];

$mapper = Mapper::withLoader(new YamlLoader(__DIR__."/resources/yaml"));
$mappedData = $mapper->mapDataWithLoader($raw, "route.yaml");

// $mappedData
[
    'id' => 'F2001E99-98E6-4C50-A965-C694EC44B810',
    'distance' => 1.223
]
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 52.6% 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/a17fa4ab7ab09a1fb23c337b8783275eb9b58d16ef09a891c35e92517f6d7a17?d=identicon)[enrise](/maintainers/enrise)

---

Top Contributors

[![DennisSnijder](https://avatars.githubusercontent.com/u/6953846?v=4)](https://github.com/DennisSnijder "DennisSnijder (10 commits)")[![williamrijksen](https://avatars.githubusercontent.com/u/1991582?v=4)](https://github.com/williamrijksen "williamrijksen (8 commits)")[![eXistenZNL](https://avatars.githubusercontent.com/u/1150201?v=4)](https://github.com/eXistenZNL "eXistenZNL (1 commits)")

---

Tags

array-manipulationsconverterdata-mapperphp-library

### Embed Badge

![Health badge](/badges/enrise-maparea/health.svg)

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

PHPackages © 2026

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