I create and manage websites, applications and e-commerce solutions at Unleashed Technologies. When I'm not solving tough problems for clients or working on open-source projects, you can find me speaking at conferences all around the world. In my free time, I also like to tinker with Arduino and home automation.
The PHP RFC for enumerations just passed a 44-7 vote to be accepted as a new feature in the upcoming PHP 8.1 release!
Enumerations, also known as "enums", are a special data type that can only contain specific, predefined (or "enumerated") values. They behave somewhat similar to constants, in that their names can be referenced in code, but they allow for stronger typing.
The classic use case illustrated by the RFC is of an enum that defines different suits of playing cards:
As a developer, I LOVE my geeky t-shirts and mugs, but it's hard to find quality products with designs I like. I've therefore been hard at work these last few weekends putting together my new project: www.moderngeekware.com
Although Composer 2 is mostly backward-compatible with projects using Composer 1, some users may need to continue using Composer 1 due to plugin incompatibilities. This article shows how to install both versions side-by-side.
The first beta release of PHP 8 is here and you can start testing it today with Docker.