PHPnews.io

Overview for 'stitcher-io'

PHP 8.1: before and after

Written by Stitcher.io / Original link on Jul. 16, 2021

The release of PHP 8.1 will be here within a few months, and once again there are many features that get me excited! In this post I want to share the real-life impact that PHP 8.1 will have on my own code. # Enums A long-awaited feature, enums are coming! There's little to be said about this one,…


Rethinking with events

Written by Stitcher.io / Original link on Jul. 14, 2021

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 user watches one of our course videos, every time they complete a video series or a pull request gets merged on GitHub, they'll receive experie…


An event-driven mindset

Written by Stitcher.io / Original link on Jul. 14, 2021

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 user watches one of our course videos, every time they complete a video series or a pull request gets merged on GitHub, they'll receive experie…



What about typed request classes?

Written by Stitcher.io / Original link on Jun. 29, 2021

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 we're actually dealing with. Such a request/dto setup usually looks something like this. Here's the request class handling validation of…


PHP version stats: July, 2021

Written by Stitcher.io / Original link on Jun. 28, 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 a dashboard with live version stats that you can check out any time you want. I made sure to let Jordi know how much I appreciated all the work…