earc / payload-container
eArc - the explicit architecture framework - psr-11 compatible container carrier blueprint
Requires
- php: ^7.2
- earc/container: ^0.1
- psr/container: ^1.0
This package is auto-updated.
Last update: 2025-04-17 22:07:51 UTC
README
Basic 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 and earc/payload. Have fun...
table of contents
installation
$ composer install earc/container
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 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 and the ItemsInterface or the Implementation.
exceptions
Please refer to the earc/container documentation for details.
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 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
release v0.0
The first official release.