Back to Vol 21, Issue 11

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.

Subscribe
Łukasz Bacik

About the author

Łukasz Bacik

Łukasz has a passion for coding, which is probably not surprising. He began with C++ during his university studies but then shifted his focus to Networking and DevOps. However, his love for coding ultimately prevailed, and ten years ago, he made the decision to pursue it as a profession. He has never looked back since then, and is grateful for that decision every day.

Our Partners

Collaborating with industry leaders to bring you the best PHP resources and expertise

Interested in partnering? Get in touch →