November 21, 2024

PHP 8.4 released

PHP 8.4 shipped on November 21, 2024 with property hooks, asymmetric visibility, and `#\Deprecated` attributes.

What it was for

PHPProperty hooks let Laravel and SymfonyA PHP framework and component library — enterprise web apps and APIs across Europe. models define get/set logic inline without boilerplate accessors. Asymmetric visibility (public read, private write) cleaned up DTOs and value objects — keeping PHP competitive for web APIs and CMSContent management system — software for building and publishing websites without hand-writing every page. plugins as hosts pushed 8.x adoption.

Why it's here

PHP 8.4 added OOPObject-oriented programming — organizing code around objects that combine data and behavior. ergonomics that JavaA portable language running on the JVM — dominant in enterprise servers, Android, and big data. and C# users take for granted.

Why it mattered

Property hooks reduce magic-method hacks in frameworks and ORMs.

What it solved

PHP classes needed verbose getter/setter pairs or `__get` magic for computed properties.

Media

  • PHP
    ImagePHP

    Colin Viebrock, Public domain, via Wikimedia Commons

Related