Historically, PHP has been a “loosely typed” language, with auto-converting between strings/integers and potential “magic” or bugs because of that. Slowly, the language itself evolved with type-hinting and return types, but also more people started to create their own object types, to define their object rules for minimizing bugs. These are called VALUE OBJECTS, and in this article, we’ll cover when/how to use them.
Source: Read MoreÂ