Using PHP 8.4’s Lazy Objects

One of the more interesting features added to PHP 8.4 is the ability to create Lazy Objects. Lazy Objects allow us to defer the initialization of an object until one of its properties is accessed. This may not be a game-changer for the average CRUD application, but it will allow us to make some […]

The post Using PHP 8.4’s Lazy Objects appeared first on php[architect].

https://www.phparch.com/2025/01/using-php-8-4s-lazy-objects/

Created 5mo | Jan 27, 2025, 7:50:04 PM


Login to add comment

Other posts in this group

The PHP Podcast: 2025.06.12

This week on the PHP Podcast, Eric and John talk about Running the a PHP Business, Feedback from attendees of PHP Tek 2025, Cloudflare Outage, New Salt Lite Framework, and more… Links from t

Jun 13, 2025, 12:50:03 AM | PHP Architect
Community Corner: PHP Installer for Extensions(PIE) with James Titcumb

In this episode, we talk with James Titcumb about his work on the PHP Installer for Extensions (PIE) for the PHP Foundation. A replacement for PECL which is going to make our lives as developers th

Jun 12, 2025, 5:50:24 PM | PHP Architect
PHP Deep Dive: May 2025 Release “The Golden Age” (AI Generate Podcast)

PHP is maturing and evolving. PHP was originally released on June 8, 1995 as Personal Home Page. It’s hard to believe that it was the community that continued driving its progress. 30 years later a

Jun 6, 2025, 3:50:04 PM | PHP Architect
The PHP Podcast: 2025.06.05

This week on the PHP Podcast, Eric and John talk about May issue release, Building your own PHP Framework, posting to social media, , and more… Links from the show: The Golden Age | PHP

Jun 6, 2025, 4:20:04 AM | PHP Architect
Working With Value Objects in Laravel 12.x

If you’re like me, you’re always on the lookout for tools and techniques that can reduce the chances that your code has bugs and make it easier to maintain. Value objects are one of my

Jun 3, 2025, 2:10:04 AM | PHP Architect
The Golden Age

PHP is maturing and evolving. PHP was originally released on June 8, 1995 as Personal Home Page. It’s hard to believe that it was the community that continued driving its progress. 30 years l

May 30, 2025, 9:30:06 PM | PHP Architect
The PHP Podcast: 2025.05.29

This week on the PHP Podcast, Eric, John, and special guest Scott Keck-Warren talk about PHP Tek 2025 Wrap Up, NativePHP, Ethics in Web Development, and more… Links from the show: Security St

May 30, 2025, 2:50:08 AM | PHP Architect