spatie/data-transfer-object library provides very easy to use data-transfer objects for PHP. If you code is relying a lot on arrays, you’ll appreciate this different approach. And the more complex your arrays are, the more benefit you’ll get out of it.