Hello, 8.2
Written on 2022-11-28Join over 14k subscribers on my mailing list. I write about PHP news, share programming content from across the web, keep you up to date about what's happening on this blog, my work on Tempest, and more.
You can subscribe by sending an email to brendt@stitcher.io.
Today's a good day! PHP 8.2 is released! Now, timezones permitting, you can already install it today, but for me, I'll probably have to wait until tomorrow.
Of course, I've been playing around with PHP 8.2 for months now, but still I look forward to the official release day — today!
I wanted to share a couple of "getting started with PHP 8.2" resources with you as well, I hope you don't mind the self-promotion part that's to come 😅 Here goes:
- What's new in PHP — My big blog post about all things PHP 8.2. If you're reading this newsletter, you're probably already aware that it exists!
- My PHP 8.2 video — If you prefer a video over text.
- The Road to PHP 8.2 — This is my newsletter series about PHP 8.2: if you subscribe you'll receive an email about PHP 8.2 for about a week. More than 3000 people have already subscribed, so you might be interested in it as well 😉
- In case you're running Mac and HomeBrew, here's how to update to PHP 8.2 — take into account though that it might take a couple of hours (or even days) before Homebrew knows about PHP 8.2!
- And finally, PHP 8.2: The Honest Trailer — I just want to point out: this is a joke!
So, are you looking forward to using PHP 8.2? What are you going to build with it? What's your favourite feature? Let me know! My favourite feature by far are readonly classes. I love using data transfer objects and value objects, and readonly classes just make everything a little more clean. Instead of writing this:
class BlogData { public function __construct( public readonly string $title, public readonly Status $status, public readonly ?Carbon $publishedAt = null, ) {} }
We can now write this:
readonly class BlogData { public function __construct( public string $title, public Status $status, public ?Carbon $publishedAt = null, ) {} }
I love it! 🤩
Oh, one more thing: I made something new as well! I wanted to create a very simplistic graph for following up on Aggregate's performance. So I ended up building a simple SVG generator that can generate GitHub-styled sparklines, check it out! Here's what it looks like:

That's about it for today, enjoy PHP 8.2 and let me know when you'll start using it!
Until next time
Brent