PHPnews.io

Overview for 'stitcher-io'

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 projectis 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 updatesin my upcoming course Mastering Nova that will be released…


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


What's new in PHP 8

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

PHP 8 will be released on November 26, 2020. It's a new major version, which means that it will introduce some breaking changes, as well as lots of new features and performance improvements. PHP 8 is in very active development right now, with its first alpha expected on June 18, 2020.Because of the …


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


Survey results: type systems in PHP

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

I use PHP's type system as much as possible, though often found resistance with the people I interact with on Twitter and Reddit.After having discussed the topic numerous times, I felt like both "camps" were not really listening to each other, or at least not understanding each others point.It made …