Software Engineering in WordPress, PHP, and Backend Development

Category: Articles (Page 80 of 258)

Personal opinions and how-to’s that I’ve written both here and as contributions to other blogs.

Configuring Composer for WordPress, Part 2

In this post, I’ll wrap up what I began to share yesterday: Using the tools and libraries I’ve shared in conjunction with Composer to sniff your commits during development before the code hits the repository.

Ideally, you’re always going to want to see something like this in your terminal whenever you commit your code:

Composer for WordPress, Part 2: Configuring Sniffs

But that’s not always the case. As with most things, though, the more you practice, the more you’ll get used to writing code that will automatically pass the various sniffs put in place through the different rules (and their customizations).

Before doing that, though, you’ve got to get GrumPHP configured in your repository.

Continue reading

Configuring Composer for WordPress, Part 1

Okay, so after talking through all of the various libraries that can help improve the code quality of your work, it still raises a question:

How do we get these projects working against our code base?

In short, it requires Composer. If you’ve never used it, I’ve written briefly about it before, but I intend to provide the basics of what you need to get started using it and the aforementioned libraries in your work.

In both this post and the next, I’ll share how to set up everything locally in the most basic form and then how it integrates with Git so you can start using it in your day-to-day.

Continue reading

Libraries for WordPress Plugins, Part 3

In the last three posts, I’ve talked about libraries for WordPlugins that I find to be extremely helpful in writing high-quality codebases.

If you’ve not been following along, you can either catch-up by reading the previous posts:

Or you can just review the list of tools I’ve listed thus far:

This post will wrap up the series with the final set of tools that we typically use when building solutions for others.

Continue reading

Libraries for WordPress Plugins, Part 2

Yesterday, I started a short series of posts covering tools that I think make for writing high-quality code in a WordPress project (specifically those that are plugins built using an object-oriented approach).

If you haven’t read the post, the first set of tools mentioned are as follows:

There are about five more tools that I like to keep running on my projects. So here’s the next three with the final two coming in the next post.

Continue reading

Libraries for WordPress Plugins, Part 1

The more you work with WordPress, especially if you employ tools like Composer and the like, the more you’re likely going to find certain libraries, tools, and similar things that form the foundation of projects on which you work.

Sometimes you may find them when looking through other people’s code, maybe you’ll find them when browsing GitHub, or maybe someone you work with will suggest a library (or a few) depending on a project.

Personally, I’ve had the experience of all of the above, and the more I work on building solutions for myself or others, the more I find myself setting up the same foundation for each project (which is typically a plugin of some sort).

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑