PHPnews.io

Overview for 'stitcher-io'

My journey into event sourcing

Written by Stitcher.io / Original link on Jul. 25, 2020

In this post I want to share four talks that have guided me into the world of event driven development, and by extent into event sourcing.I wanted to share these talks here on my blog, because I figured some of you might be interested in them, and this way I can revisit them in the future.Starting…


PHP 8: named arguments

Written by Stitcher.io / Original link on Jul. 23, 2020

It was a close call, but named arguments — also called named parameters — are supported in PHP 8! In this post I'll discuss their ins and outs, but let me show you first what they look like with a few examples in the wild:setcookie( name: 'test', expires: time() + 60 * 60 * 2,);Named argument…


PHP 8: before and after

Written by Stitcher.io / Original link on Jul. 20, 2020

It's only a few months before PHP 8 will be released, and honestly there are so many good features. In this post I want to share the real-life impact that PHP 8 will have on my own code.# Events subscribers with attributesI'm going to try not to abuse attributes, but I think configuring event liste…


Shorthand comparisons in PHP

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

You probably already know some comparison operators in PHP.Things like the ternary ?:, the null coalescing ?? and the spaceship operators.But do you really know how they work?Understanding these operators makes you use them more, resulting in a cleaner codebase.Before looking at each operator in…


Why we need named arguments in PHP

Written by Stitcher.io / Original link on Jul. 11, 2020

There's a new RFC in town for PHP 8, and its name is the named arguments RFC.If you're eligible to vote, or know someone who can: I want to ask you to take five minutes to read this, and to be clear up front: I want you to vote yes.Here's why from the point of view of a userland developer, both for…


Laravel beyond CRUD: the next chapter

Written by Stitcher.io / Original link on Jul. 9, 2020

It's been almost a year since I released the first post in a series called "Laravel beyond CRUD'. Its goal to teach about how we've been building large application with complex business rules, in Laravel.It's clear that many of you enjoyed that series: it got over 150,000 views, and I still get sev…