PHP Architect · Vol 21, Issue 11 · November 2022
Value Objects
by Łukasz Bacik
This article discusses the use of Value Objects in the context of PHP applications. The article presents step-by-step implementations of an example Value Object (class Person), as well as the use and discussion of the lbacik\value-object^1 library. Examples utilize the phpspec^2 framework as the test platform (one does not live by PHPUnit alone, after all!), and the entire code is available on GitHub^3. Enjoy!
The full article is in PHP Architect Vol 21, Issue 11. Subscribe to read it and every new issue.