Author: abaratz

Adam is a member of the Storefront engineering team at Wayfair.

Testing PHP7

PHP7 is out. This isn’t news. It’s been out since last December, with nine minor revisions since then. What’s new is that it’s serving all of Wayfair’s customer-facing traffic. Performance-wise, PHP7 is the rocket ship people said it would be. We’re nothing but pleased. If you can upgrade, you should do…

Read more

Rendering Mustache templates with PHP

For the past couple years, Wayfair’s front-end stack has relied heavily on Mustache templates. They’ve let our growing front-end team focus on the front-end. They allow us to share more code between server and client as we push towards a Tungsten-powered future. Anyone who’s seen a Mustache template knows that…

Read more


When you write your first web application, chances are you’re going to query a database. When you write it in PHP, chances are it’ll look like this: $mysqli = new mysqli(“”, “user”, “password”, “database”); $result = $mysqli->query(“SELECT * FROM product”); $row = $result->fetch_assoc(); Before long, you have to start handling user input, which means escaping: $mysqli = new mysqli(“”, “user”, “password”, “database”);…

Read more