eboreum/value-object-interface

Flag a class as a value-object by implementing the ValueObjectInterface.

Maintainers

Package info

gitlab.com/eboreum/value-object-interface

Issues

pkg:composer/eboreum/value-object-interface

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

1.0.0 2026-05-17 12:37 UTC

This package is auto-updated.

Last update: 2026-05-17 14:37:14 UTC


README

license pipeline status PHPStan Level

eboreum-value-object-interface

Implement Eboreum\ValueObjectInterface\ValueObjectInterface on any class to flag it as a value-object.

A value-object should never cause any side effects. For instance, a value-object should not cause database writes, cause network requests, cause logging, or similar things.

Requirements

"php": "^8.0"

Installation

Via Composer (https://packagist.org/packages/eboreum/value-object-interface):

composer require eboreum/value-object-interface

Via GitLab:

git clone git@gitlab.com:eboreum/value-object-interface.git

License & Disclaimer

See LICENSE file. Basically: Use this library at your own risk.

Contributing

We prefer that you create an issue and or a merge request at https://gitlab.com/eboreum/value-object-interface, and have a discussion about a feature or bug here.

Credits

Authors

Acknowledgements

This library is largely inspired by PSR-20: Clock, which in a similar fashion defines just a single interface. Also see https://packagist.org/packages/psr/clock.