PHPackages                             msales/string-mapper-bundle - 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. msales/string-mapper-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

msales/string-mapper-bundle
===========================

0.0.3(9y ago)14.5k1[1 PRs](https://github.com/msales/StringMapperBundle/pulls)MITPHPPHP &gt;=7.0.0

Since Mar 10Pushed 8y ago7 watchersCompare

[ Source](https://github.com/msales/StringMapperBundle)[ Packagist](https://packagist.org/packages/msales/string-mapper-bundle)[ Docs](https://github.com/msales/StringMapperBundle)[ RSS](/packages/msales-string-mapper-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (5)Used By (0)

StringMapperBundle
==================

[](#stringmapperbundle)

[![Minimum PHP Version](https://camo.githubusercontent.com/5c3072425e67297c8ef63d17acd2c86a0d2ef324f19249f2280bd7de902f63a2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e302d3838393242462e737667)](https://php.net/)

To use this bundle, you need to create new service:
---------------------------------------------------

[](#to-use-this-bundle-you-need-to-create-new-service)

### For Mapper with Default:

[](#for-mapper-with-default)

```
    mapper.test_default:
        class: "%msales.string_mapper.default.class%" #storm is lost withot it :(
        parent: msales.string_mapper.default
        arguments:
            -
                ala: makota
                kot: madoscali

```

Default mapper will return requested key if its not found in the map.

### For Whitelisting Mapper:

[](#for-whitelisting-mapper)

```
    mapper.test_whitelisting:
        class: "%msales.string_mapper.whitelisting.class%" #storm is lost withot it :(
        parent: msales.string_mapper.whitelisting
        arguments:
            -
                ala: makota
                kot: madoscali

```

Whitelisting mapper will throw exception if requested key is not in map.

License
-------

[](#license)

StringMapperBundle is released under the MIT Licence. See the bundled LICENSE file for details.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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 ~2 days

Total

3

Last Release

3397d ago

PHP version history (2 changes)0.0.1PHP &gt;=7.0.0

0.0.2PHP &gt;=5.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/53617?v=4)[msales](/maintainers/msales)[@msales](https://github.com/msales)

---

Top Contributors

[![mwadon](https://avatars.githubusercontent.com/u/3395702?v=4)](https://github.com/mwadon "mwadon (2 commits)")

---

Tags

bundleSymfony2String mapping

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/msales-string-mapper-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/msales-string-mapper-bundle/health.svg)](https://phpackages.com/packages/msales-string-mapper-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)

PHPackages © 2026

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