Introduction to Extending Craft CMS

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.

Introduction to Extending Craft CMS is made up of the following videos: