PHPackages                             reinfi/laminas-env-mapper - 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. reinfi/laminas-env-mapper

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

reinfi/laminas-env-mapper
=========================

Map $\_ENV to objects using EnvMapper

v1.1.0(2y ago)3891MITPHPPHP ~8.1.0 || ~8.2.0 || ~8.3.0

Since Mar 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/reinfi/laminas-env-mapper)[ Packagist](https://packagist.org/packages/reinfi/laminas-env-mapper)[ RSS](/packages/reinfi-laminas-env-mapper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (5)Used By (0)

Laminas Env Mapper
==================

[](#laminas-env-mapper)

Using EnvMapper to map $\_ENV to objects.

1. [Installation](#installation)
2. [Environment Object Mapping](#environment-object-mapping)
3. [FAQ](#faq)

### Installation

[](#installation)

1. Install with Composer: `composer require reinfi/laminas-env-mapper`.

### Environment Object Mapping

[](#environment-object-mapping)

Just specify the factory for your object, this will then map the object with EnvMapper.

```
'service_manager' => [
    'factories' => [
        YourEnvironmentObject::class => \Reinfi\LaminasEnvMapper\Factory\EnvObjectMapperFactory::class,
    ],
]
```

You could use the object in your container by retrieving it.

```
$container->get(YourEnvironmentObject::class);
```

#### Abstract Factory Usage

[](#abstract-factory-usage)

If you do not want to register all your environment objects to the container you could register an abstract factory.

```
'service_manager' => [
    'abstract_factories' => [
        \Reinfi\LaminasEnvMapper\AbstractFactory\\Reinfi\LaminasEnvMapper\AbstractFactory\AbstractEnvObjectMapperFactory::class,
    ],
]
```

Your objects must extend the `EnvObjectInterface`.

### FAQ

[](#faq)

Feel free to ask any questions or open own pull requests.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Total

2

Last Release

809d ago

PHP version history (2 changes)v1.0.0PHP ~8.1.0 || ~8.2.0

v1.1.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd12a82b28a65cedc8e06642dabfbfd70fd512287bbaed49aaac0072fe898e41?d=identicon)[reinfi](/maintainers/reinfi)

---

Top Contributors

[![reinfi](https://avatars.githubusercontent.com/u/9324423?v=4)](https://github.com/reinfi "reinfi (15 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/reinfi-laminas-env-mapper/health.svg)

```
[![Health](https://phpackages.com/badges/reinfi-laminas-env-mapper/health.svg)](https://phpackages.com/packages/reinfi-laminas-env-mapper)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[laminas/laminas-paginator

Paginate collections of data from arbitrary sources

245.7M84](/packages/laminas-laminas-paginator)[neilime/twbs-helper-module

Laminas (formerly Zend Framework) module for easy integration of Twitter Bootstrap

2198.7k](/packages/neilime-twbs-helper-module)[mtymek/blast-reflection-factory

Universal auto-wiring factory for Laminas ServiceManager.

1967.3k](/packages/mtymek-blast-reflection-factory)

PHPackages © 2026

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