PHPackages                             alexmcarrow/datamapper - 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. alexmcarrow/datamapper

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

alexmcarrow/datamapper
======================

Data Mapper Class

20PHP

Since Dec 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/AlexMcArrow/DataMapper)[ Packagist](https://packagist.org/packages/alexmcarrow/datamapper)[ RSS](/packages/alexmcarrow-datamapper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

DataMapper
==========

[](#datamapper)

Class for mapping data by filters

Instalation
-----------

[](#instalation)

```
composer require alexmcarrow/datamapper
```

Using
-----

[](#using)

```
use AlexMcArrow\DataMapper\DataMapper;

new DataMapper();
DataMapper::setFieldsFilter([
            'key' => 'KeyID',
            'name' => 'User Name'
        ]);

$rawdata = [
    [
        'key' => 'a1',
        'name' => 'Alex',
        'email' => 'alex@domain.tld'
    ],
    [
        'key' => 'b2',
        'name' => 'Axel'
    ]
];

$cleardata = DataMapper::parseMapData($rawdata, DataMapper::$FILTER_PASS_CUT, DataMapper::$FILTER_TYPE_HARD, DataMapper::$MAP_KEY, DataMapper::$MAP_VALUE);

print_r($cleardata);
```

```
[
    [
        'keyid' => 'a1',
        'user name' => 'Alex'
    ],
    [
        'keyid' => 'b2',
        'user name' => 'Axel'
    ]
]
```

License
-------

[](#license)

MIT

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

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/9628c57766ce12331abf87709d989b193fe123b6a358859d49f7df6edab6545f?d=identicon)[AlexMcArrow](/maintainers/AlexMcArrow)

### Embed Badge

![Health badge](/badges/alexmcarrow-datamapper/health.svg)

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

###  Alternatives

[eadesigndev/module-fullbreadcrumbs

Full breadcrumbs for product page

223.9k](/packages/eadesigndev-module-fullbreadcrumbs)

PHPackages © 2026

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