Correctly highlighting code using Shiki & PHP
Highlighting code blocks correctly on your website is a more difficult problem to solve than you'd expect. There are many great solutions like Prism or Highlight. js, but they often have...
Jul 11th 2021 rias.be

Finding out which ports are in use
Sometimes you want to spin up a process, but the port it wants to bind to is already in use. Or a port isn’t listening to a process as you...
Jul 9th 2021 sebastiandedeyne.com

Leaner feature branches
In most projects, we use git flow to some extent — depending on the project and team size. This includes feature branches. Feature branches (or sometimes called topic...
Jul 7th 2021 sebastiandedeyne.com

Cloning and changing readonly properties in PHP 8.1
In PHP 8.1, readonly properties aren't allowed to be overridden as soon as they are initialized. That also means that cloning an object and changing one of its readonly...
Jul 6th 2021 stitcher.io

What's new in PHP 8.1
PHP 8.1 is currently in active development and will be released on November 25, 2021. Keep in mind that this date can still change if the core team,...
Jul 5th 2021 stitcher.io

What about typed request classes?
In some of our larger Laravel projects, we prefer to map request data to data transfer objects. By doing so we gain static analysis insights in what kind of data...
Jun 29th 2021 stitcher.io

PHP version stats: July, 2021
Last month, Jordi announced he'd be sunsetting his PHP Version Stats blog series, so that he can focus on other types of content. As a replacement, he made...
Jun 28th 2021 stitcher.io

Opinion-driven design
I once worked at a company that wrote and maintained an in-house framework. Over the course of ten years, they probably made around 250 websites and applications with it. Despite...
Jun 23rd 2021 stitcher.io

Introducing Laravel Google Fonts
Today, we’re launching a new Spatie package: Laravel Google Fonts. I’ve written about Google Fonts before. It’s a great font catalog, but the service has it’s downsides. First, fonts...
Jun 23rd 2021 sebastiandedeyne.com

What about config builders?
I've been tinkering with a hobby project lately: a small framework to get more familiar with PHP 8, and try out some random ideas floating in my head. It's...
Jun 18th 2021 stitcher.io