freek.dev newsletter #188

Hi there!

Welcome to the 188th freek.dev newsletter!

Here are a couple of links I hope you'll enjoy as much as I did.

⭐ Typehinting Laravel validation rules using PHPStan's type aliases
In this post, I'll share how I'm using PHPStan's type aliases feature to make validation rule typehints more readable and maintainable in our Laravel application.

How to use one-time passwords in Laravel
A nice video from Povilas on our newest pacakage

Oh Dear: the all-in-one monitoring tool for your entire website (sponored link 😅)
Downtime happens, certificates expire, and links break. But the faster the right people know about it, the less you need to worry. Oh Dear lets you monitor an unlimited number of websites however you like with just a few clicks.

15 Lesser known Spatie Laravel Packages and Projects
Another cool one from Povilas.

Choosing where to spend my team’s effort
It’s the start of a new fiscal year. Strategy season. That time when all the grand ideas come out and everyone is still hopefull. Over the years, I’ve settled into a structure that helps me define projects that not only link to the strategy above but also looks at my own team’s enviroment, I thought I’d share it here.

PHP version stats (June 2025 edition)
Brent is back with another update on the usage of PHP versions.

Improve user experience while keeping an eye on performance
A nice touch by Joel Clermont

How to use Enum Cases in Laravel | How to | Tutorial | Quick Win Wednesday #QWW
In this episode of the Quick Win Wednesday series, we're taking a look at the cases function on Enums.

How to Build an Agent
A good overview on how to build an AI agent. Explained without hype and good code examples.

React, visualized
A visual exploration of core React concepts

What sets Tempest apart as a framework for modern PHP development
Brent is doing some interesting stuff here.

Your System Isn’t Slow – Your Bottleneck is not Optimized
A bottleneck isn’t inherently bad, we all have them. What matters is making sure your biggest bottleneck is always working at it’s most optimal conditions. That’s where your optimizations should be focused.

PHP 8.4's new Dom\HTMLDocument in Diffs
With PHP 8.4’s release, we have a new Dom\HTMLDocument class that makes working with HTML documents easier and more standards-compliant, while fixing some long-standing bugs in the old DOMDocument class.

Developer Tooling #003
Some cool tools selected by Patrick.


Community links

In this section you'll find links submitted by others. Let me know if you did write or stumbled across a blog post, tutorial or video that might be interesting to appear in this section

Validating VAT numbers in Laravel - Package In Review: burtds/laravel-vatnumber-checker (submitted by Bert De Swaef)

Setting up Horizon Worker Servers with Ploi (submitted by Lewis Larsen)

Send out One Time Passwords thanks to SPATIE - Package In Review: spatie/laravel-one-time-passwords (submitted by Bert De Swaef)

Cast Laravel Model Fields to "Illuminate\Support\Uri" with "AsUri" (submitted by Ash Allen)

Formatting Monetary Values in JavaScript (submitted by Ash Allen)

🔋 How to Use the Navigator Battery API in JavaScript (Get Battery Status & Charging Events) (submitted by Bert De Swaef)

Asymmetric Property Visibility in PHP (submitted by Ash Allen)

Become a Master with Pagination in Laravel | How to | Tutorial | Quick Win Wednesday #QWW (submitted by Bert De Swaef)

Pass a Query Builder to "whereIn" to Reduce Your DB Queries (submitted by Ash Allen)


Old posts

Here are a couple of links from a while ago!

WeakMaps, a hidden gem in PHP

Building Laravel Error Share

Mastering Programming

Lessons from Open Source Software

From Contributor to Maintainer: Lessons from Open Source Software

Become a debugging wizard with RAY

Leveraging the Power of Macros in Ray

Tagged Singletons


Did you like this newsletter?

I take a lot of time curating the right links for you. You could do me a favor by either spreading the word and letting others know about my newsletter.

Alternatively, you could consider picking up one of the paid products my team and I have worked on:

  • All spatie products
  • Oh Dear
  • Mailcoach
  • Flare

If you have any questions, remarks or thoughts about this newsletter, simply hit reply!

Thank you so much for reading!


Freek

You are receiving this newsletter because you subscribed at freek.dev Unsubscribe from this newsletter This mail was sent using Mailcoach

Online version • Past editions • Unsubscribe