PHPnews.io

Overview for 'stitcher-io'

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…


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 se…


Abstract resources in Laravel Nova

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

One of the major coding architecture strategies I use when building a complex Laravel Nova project is the ability to have an abstract resource class. Before starting by the way, if you want deep dive in Nova, I suggest you subscribe to updates in my upcoming course Mastering Nova that will be relea…


Don't write your own framework

Written by Stitcher.io / Original link on Jun. 13, 2020

We were sitting with 5 or 6 backend developers around the large meeting table. It was 10 in the morning on a Monday, and we were all silently working on our laptops. There was a hasty atmosphere, and everyone tried to concentrate on the task ahead. Less than 2 hours before, I walked into the office…


Constructor property promotion in PHP 8

Written by Stitcher.io / Original link on Jun. 12, 2020

Personally, I use value objects and data transfer objects all the time in my projects. I even wrote a dedicated post on how to treat data in our code a while back. Naturally, I'm very happy with the constructor property promotion RFC, it's passed and will be added in PHP 8. You see, this feature re…


Attributes in PHP 8

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

As of PHP 8, we'll be able to use attributes. The goal of these attributes, also known as annotations in many other languages, is to add meta data to classes, methods, variables and what not; in a structured way. The concept of attributes isn't new at all, we've been using docblocks to simulate the…