Craft CMS Plugin Local Development Environment

How to create a local plugin development environment with DDEV.

The last step in this intro­duc­tion to extend­ing Craft CMS is to cre­ate a devel­op­ment envri­on­ment for plu­g­ins and/​or mod­ules that exists out­side the con­text of a spe­cif­ic project.

Why would you want to do this?

Some­times we need to cre­ate plu­g­ins that are reusable across projects, whether they remain pri­vate or are shared in the offi­cial Craft Plu­g­in Store. It’s good prac­tice to have vanil­la instal­la­tions of the Craft ver­sions you plan to sup­port (right now I think it’s com­mon to sup­port both Craft 4 and Craft 5). 

Cre­at­ing a local devel­op­ment envi­ron­ment that is ded­i­cat­ed just to plu­g­in devel­op­ment helps you have a sta­ble and pre­dictable place for testing.

Craft Version
Craft 5
Instructor
Ryan Irelan
Level
Intermediate
Date Published
July 01, 2025
Ryan Irelan

I am the creator of CraftQuest, a web developer, and former software team manager. I spend most of my time improving CraftQuest with code and courses. When I'm not in front of the computer, I spend my time with my family, and running on the roads and trails of Austin, TX.