Matthew Setter

Matthew Setter headshot

Matthew Setter is a software developer, focusing on reliable, tested, and secure PHP code. He’s also the author of Mezzio Essentials  a comprehensive introduction to developing applications with the Mezzio Framework.

twitter: @settermjd

Web site:


Introducing the Mezzio Framework

By Matthew Setter

There are copious frameworks available for PHP, including Laravel, Symfony, and CakePHP. However, each of these is designed to build applications with a particular focus in mind. In this article, I will introduce you to one that is focus-agnostic, one which lets you take whichever path makes the most sense to your use case. It’s called Mezzio.

Published in Dealing with Data, February 2021

Creating Zend Expressive Applications by Hand

By Matthew Setter

Zend Expressive is the latest iteration of Zend Framework. Like a lot of modern frameworks, it supports a lot of command line tooling to make life easier when bootstrapping applications with it. In Zend Expressive’s case, when creating new applications, you can use the Zend Expressive Skeleton Installer to rapidly create a new application that is ready-to-go with basic routing, dependency injection, templating, and error handling. While that can be a logical way to go, it’s not the only way. You don’t need to use the Skeleton Installer. You can create applications by hand.

Published in Internal Journeys – October 2018, October 2018

Education Station: How to Write Your Own Code Sniffer

By Matthew Setter

Whether you’re new to PHP, or you’re more of a seasoned veteran, you’ve probably heard about PHP_CodeSniffer. The package, which has been around since September 2006, checks source code for coding standards violations. I’ll start off by showing you how to create a style which is a combination of other standards. I’ll then refactor it, so you learn how to pick and choose only the elements from those standards you need. Finally, I’ll step through the process of creating your own code sniff from scratch, one handling a specific use case.

Published in Talking Code, December 2017