Rethinking with events
I'm working on a new feature for our Spatie website: I'm adding a lightweight form of gamification for our ±10.000 users. Here's how it works: every time a...
Jul 14th 2021 stitcher.io

An event-driven mindset
I'm working on a new feature for our Spatie website: I'm adding a lightweight form of gamification for our ±10,000 users. Here's how it works: every time a...
Jul 14th 2021 stitcher.io

How to render markdown with perfectly highlighted code snippets
When reading technical blogpost around the web, you might have noticed that code highlighting is not always perfect. Shiki is the code highlighter that uses the textmate parser VSCode uses...
Jul 13th 2021 freek.dev

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

PHP 8.1: cloning and changing readonly properties
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...
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