PHPnews.io

Overview for 'stitcher-io'

Minor versions, breaking changes

Written by Stitcher.io / Original link on Mar. 26, 2020

When my colleague Sebastian wrote about how bumping major versions isn't a breaking change, I would wholeheartedly agree.I can't anymore. At least, not with how composer works today.See yesterday, we stumbled upon a breaking change. And yet we didn't do any major version upgrades. Luckily another …


PHP reimagined

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

This post is simply me thinking about how we could change PHP to make it better.It's a very subjective list, and in no way a critique on the amazing work the core team is doing.# Final by defaultA common misconception about OO programming is that it's all about inheritance.Inheritance and polymorph…


Event driven server in PHP

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

Lately I've been tinkering with a unique kind of architecture for PHP applications. I want to tell you up front that I don't think it will solve any real-life problems soon; still I want to involve you in the thought-process. Who knows what kind of great ideas might arise?In this post I'll go throu…


New in PHP 8

Written by Stitcher.io / Original link on Feb. 27, 2020

PHP 8, the new major PHP version, is expected to be released by the end of 2020. It's in very active development right now, so things are likely to change a lot in the upcoming months.In this post I'll keep an up-to-date list of what's expected to come: new features, performance improvements and br…


Bitwise booleans in PHP

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

In my previous post I wrote about applying enum patterns in PHP, without native enum support.In that post, I gave the example of a "date range boundaries" enum, one that represents which boundaries are included in the range, and which are not. It had four possible values:Boundaries::INCLUDE_NONE();…


Enums without enums in PHP

Written by Stitcher.io / Original link on Feb. 1, 2020

Enums are still lacking in PHP, yet there is a clean way to have enum-like behaviour in your code bases, without using external dependencies. Take the example of date range boundaries: its boundaries can be included or excluded. Here's how a Boundaries enum would be used:$dateRange = DateRange::ma…