PHPNews

JSON Notation for PHP 7.0

tldr; I’ve been experimenting with the PHP interpreter, and I made a thing … JSON is by far the most common API request format. I design, build, and fix API servers for a living. I write a lot of API tests as a result. I often find myself wishing that I could write JSON directly in PHP code like this: …

Continue reading »

Written by Stuart Herbert - Blog - - Aggregated on Saturday July 9, 2016


Gathering Apache Core Dumps Inside Docker

Over the last four weeks, I’ve been plagued by numerous PHP segfault problems – multiple versions of PHP, on different operating systems, on different hardware, and running completely different codebases. Yesterday, I ran into a segfault that I couldn’t work around. It is happening with Apache + mod_php, running …

Continue reading »

Written by Stuart Herbert - Blog - - Aggregated on Wednesday January 6, 2016


Another Fantastic PHPNW Conference!

I’m back from this year’s PHP North West Conference , and finally have a few moments to talk about what was (yet again!) another excellent year. I was there to present two talks – Introducing a Quality Model For MVC Applications , and Ways To Measure Your ORM’s Cost . It’s the first time since the php|cruise back …

Continue reading »

Written by Stuart Herbert - Blog - - Aggregated on Thursday October 8, 2015


Talk: Ways To Measure Your ORM’s Cost

Here is the original blurb for this talk … Your project has adopted an ORM such as Doctrine because it’s the quickest way to hook your code up to your database. Things are looking up, and your website is about to take off. Aaaand then the first complaints start to come in that your site isn’t coping with the new …

Continue reading »

Written by Stuart Herbert - Blog - - Aggregated on Thursday October 8, 2015


In Defence Of The DSLR

This afternoon, I’ve seen several folks on Twitter sharing a well-meaning story called Please Don’t Buy A DSLR . Each time, the tweet echoed the same sentiments: DSLRs are too difficult to use, and they’re too large and bulky. And that got me thinking. You see, the SLR as a platform is one that I’ve grown up …

Continue reading »

Written by Stuart Herbert - Blog - - Aggregated on Saturday August 15, 2015


Catching Up On Recent Talks

I’ve given several talks to user groups over the last few months, around the topics of testing and performance. I hope that you find them interesting and useful. When To Mock Mocking has not only become a mainstream practice in recent years, it has also become the default practice for many developers. In this …

Continue reading »

Written by Stuart Herbert - Blog - - Aggregated on Wednesday August 12, 2015


Goodbye, Phix

Back in 2009, I spoke at the PHP UK Conference about the pain of living with PHP’s fledgling frameworks, and I returned in 2011 to promote component-driven applications: Back then, PEAR was the only tool available for distributing components. It was built in a time when hosting and sharing code was hard , and …

Continue reading »

Written by Stuart Herbert - Blog - - Aggregated on Monday March 2, 2015


Desktop Wallpaper: Llyn Cwm Llwch

Last weekend was our warm-up day for the 3 Peaks Challenge. We walked up to the summit of Pen-y-fan and back twice in just over 5 hours. I was expecting my knee to be a major doubt for the walk, but it turned out that I’m so unfit that the knee was the least of my worries I did take the camera with me for the …

Continue reading »

Written by Stuart Herbert - Blog - - Aggregated on Friday April 4, 2014


Desktop Wallpaper: Passing By

Directly opposite the bright lobby display in the gym are the circular walls of the Museum of London, and attached to those walls is are a couple of multi-segmented art deco lizards. You can’t see them from the skywalk entrances to the museum above – you have to come down to street level to be able to enjoy them. …

Continue reading »

Written by Stuart Herbert - Blog - - Aggregated on Wednesday March 26, 2014


Desktop Wallpaper: Smithfield Market

Last week, I was in London for this year’s Scale Summit, and afterwards I went for a wander through the City of London to try my hand at some night photography. I’d been in the City exactly a month earlier, speaking at the PHP UK Conference, and had spotted all of these interesting sights – but hadn’t had my camera …

Continue reading »

Written by Stuart Herbert - Blog - - Aggregated on Monday March 24, 2014