PHPNews

Array destructuring in PHP

In my day to day job I write in a number of programming languages. The majority of my time is spent writing PHP but I very much enjoy writing other languages, such as Go and Javascript, too! One of the things I like the most about JavaScript, and PHP also to some extent, is how flexible and expressive they CAN be …

Continue reading »

Written by Frank de Jonge - - Aggregated on Monday April 30, 2018


Being in control of time in PHP

When developers talk about the infrastructural boundaries or external dependencies they often talk about databases and third-party integration. They're the first thing we'll put behind an interface so we can stub them out during our tests. This gives us some control over them. It's become relatively easy to spot these …

Continue reading »

Written by Frank de Jonge - - Aggregated on Thursday March 8, 2018


Pipelines, immutability and privates.

A recent addition to the PHP League was the pipeline package, which allows you to compose sequential operations. One of the key aspects of the pipeline is that it's immutable. During the development of Pipeline, I learned a few lessons that I'd like to share with you. When I started working on the Pipeline …

Continue reading »

Written by Frank de Jonge - - Aggregated on Friday December 4, 2015


Onboarding and Ansible Galaxy.

When you start working on a new project, there are usually a couple of steps you'll need to follow to get up and running. This process is called on-boarding . One of the steps in this process is getting your local development environment setup. On every team I've worked we've used Vagrant. Any provisioning is done …

Continue reading »

Written by Frank de Jonge - - Aggregated on Sunday September 27, 2015


Rendering ReactJS templates server-side.

The last couple of months I've been working with ReactJS quite extensively. It's been a very rewarding and insightful journey. There is, however, one part that kept coming back to me: server-side rendering . How on earth am I going to use ReactJS when I want to render my templates on the server? So, I sat down and …

Continue reading »

Written by Frank de Jonge - - Aggregated on Monday May 18, 2015