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 2w 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

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

2542d 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

[laravel/framework

The Laravel Framework.

34.8k543.8M19.7k](/packages/laravel-framework)[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.8k](/packages/cakephp-cakephp)[bref/bref

Bref is a framework to write and deploy serverless PHP applications on AWS Lambda.

3.4k10.6M67](/packages/bref-bref)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)

PHPackages © 2026

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