PHPackages                             earc/payload-container - 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. [Framework](/categories/framework)
4. /
5. earc/payload-container

ActiveLibrary[Framework](/categories/framework)

earc/payload-container
======================

eArc - the explicit architecture framework - psr-11 compatible container carrier blueprint

0.1.1(6y ago)048MITPHPPHP ^7.2

Since Jan 26Pushed 6y agoCompare

[ Source](https://github.com/Koudela/eArc-payload-container)[ Packagist](https://packagist.org/packages/earc/payload-container)[ RSS](/packages/earc-payload-container/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

earc/payload-container
======================

[](#earcpayload-container)

Basic [psr-11](https://www.php-fig.org/psr/psr-11/) compatible container carrier blueprint.

This eArc component is brought to you as a standalone component mainly for reusage reasons. There is nothing special or ground breaking to it. In nearly every project of medium complexity you need a container carrier class. There is no point in reinventing the wheel again and again. It combines the functionality of [earc/container](https://github.com/Koudela/eArc-container/) and [earc/payload](https://github.com/Koudela/eArc-payload/). Have fun...

table of contents
-----------------

[](#table-of-contents)

- [installation](#installation)
- [basic usage](#basic-usage)
- [exceptions](#exceptions)
- [advanced usage](#advanced-usage)
- [releases](#releases)

installation
------------

[](#installation)

```
$ composer install earc/container

```

basic usage
-----------

[](#basic-usage)

```
use eArc\PayloadContainer\PayloadContainer;

new PayloadContainer();
```

The payload container carries one object implementing the `ItemsInterface`. The `PayloadContainerInterface` extends the `ItemsInterface` thus all things you can do with the [earc/container](https://github.com/Koudela/eArc-container/) can be done with the payload container, too. In fact it forwards all the `ItemsInterface` calls to the items object.

For details refer to the [PayloadContainerInterface](https://github.com/Koudela/eArc-payload-container/blob/master/src/Interfaces/PayloadContainerInterface.php)and the [ItemsInterface](https://github.com/Koudela/eArc-container/blob/master/src/Interfaces/ItemsInterface.php)or the [Implementation](https://github.com/Koudela/eArc-payload-container/blob/master/src/PayloadContainer.php).

exceptions
----------

[](#exceptions)

Please refer to the [earc/container documentation](https://github.com/Koudela/eArc-container/) for details.

advanced usage
--------------

[](#advanced-usage)

Implement the `ItemInterface` or the `PayloadContainerInterface` for yourself. eArc encourages the use of interfaces. In all eArc components using the [earc/components-di](https://github.com/Koudela/eArc-component-di) component for dependency injection you can replace the classes used for the interfaces as easy as writing your own name. Yes, even in the earc component itself.

releases
--------

[](#releases)

### release v0.0

[](#release-v00)

The first official release.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

Total

3

Last Release

2494d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b7308f2797252cace014cfec12c1b5978c1bf5608be78d7a188ff690192959f3?d=identicon)[Thomas Koudela](/maintainers/Thomas%20Koudela)

---

Top Contributors

[![Koudela](https://avatars.githubusercontent.com/u/21366492?v=4)](https://github.com/Koudela "Koudela (25 commits)")

---

Tags

carriercontainerearc-frameworkphppsr-11

### Embed Badge

![Health badge](/badges/earc-payload-container/health.svg)

```
[![Health](https://phpackages.com/badges/earc-payload-container/health.svg)](https://phpackages.com/packages/earc-payload-container)
```

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M343](/packages/drupal-core-recommended)[cakephp/core

CakePHP Framework Core classes

6026.8M39](/packages/cakephp-core)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)

PHPackages © 2026

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