How to create a local plugin development environment with DDEV.
The last step in this introduction to extending Craft CMS is to create a development envrionment for plugins and/or modules that exists outside the context of a specific project.
Why would you want to do this?
Sometimes we need to create plugins that are reusable across projects, whether they remain private or are shared in the official Craft Plugin Store. It’s good practice to have vanilla installations of the Craft versions you plan to support (right now I think it’s common to support both Craft 4 and Craft 5).
Creating a local development environment that is dedicated just to plugin development helps you have a stable and predictable place for testing.

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.