uuid: - value: 465a0fa7-eb20-4d3e-b30d-9d03187b13ca langcode: - value: en type: - target_id: daily_email target_type: node_type target_uuid: 8bde1f2f-eef9-4f2d-ae9c-96921f8193d7 revision_timestamp: - value: '2025-07-02T20:56:35+00:00' revision_uid: - target_type: user target_uuid: b8966985-d4b2-42a7-a319-2e94ccfbb849 revision_log: { } status: - value: true uid: - target_type: user target_uuid: b8966985-d4b2-42a7-a319-2e94ccfbb849 title: - value: 'PHP, Value Objects and You' created: - value: '2025-07-01T20:48:01+00:00' changed: - value: '2025-07-02T20:56:35+00:00' promote: - value: false sticky: - value: false default_langcode: - value: true revision_translation_affected: - value: true path: - alias: /daily/2025/07/01/php-value-objects-and-you langcode: en body: - value: |- Last week, I wrote about [giving things descriptive names][0] with value objects in PHP (and other languages). I gave examples of value objects I've recently written to show how they make code descriptive and easier to understand. Previous [Beyond Blocks podcast guest][1], Dan Leech, gave a great talk about value objects at a local PHP user group. That talk is not online yet, but the video of the version from the [Dutch PHP Conference][2] has just been released. The slides are also online on Dan's website. I recommend watching the video and/or reviewing the slides, and start trying to use value objects in your code. [0]: /daily/2025/06/23/giving-things-descriptive-names [1]: /podcast/6-dan-leech-php-tui [2]: https://www.youtube.com/watch?v=FIKpNzEGQJY format: markdown processed: |

Last week, I wrote about giving things descriptive names with value objects in PHP (and other languages).

I gave examples of value objects I've recently written to show how they make code descriptive and easier to understand.

Previous Beyond Blocks podcast guest, Dan Leech, gave a great talk about value objects at a local PHP user group.

That talk is not online yet, but the video of the version from the Dutch PHP Conference has just been released.

The slides are also online on Dan's website.

I recommend watching the video and/or reviewing the slides, and start trying to use value objects in your code.

summary: '' field_daily_email_cta: - target_type: node target_uuid: 20cde1b4-efdc-46a4-a6a4-4fd2264f617e