https://github.com/broskees/ddev-wp-plugin-boilerplate
Plugin boilerplate with a DDEV WordPress local enviornment for plugin development!
https://github.com/broskees/ddev-wp-plugin-boilerplate
boilerplate ddev docker local-development wordpress wordpress-boilerplate wordpress-development wordpress-plugin wordpress-starter-plugin
Last synced: about 2 months ago
JSON representation
Plugin boilerplate with a DDEV WordPress local enviornment for plugin development!
- Host: GitHub
- URL: https://github.com/broskees/ddev-wp-plugin-boilerplate
- Owner: broskees
- Created: 2024-10-11T16:28:42.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-08T17:05:25.000Z (over 1 year ago)
- Last Synced: 2025-08-15T19:45:59.994Z (10 months ago)
- Topics: boilerplate, ddev, docker, local-development, wordpress, wordpress-boilerplate, wordpress-development, wordpress-plugin, wordpress-starter-plugin
- Language: PHP
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DDEV WP Plugin Boilerplate
Plugin boilerplate with a DDEV WordPress local environment for plugin development!
## Getting Started
Clone the boilerplate into your plugin directory. Make sure you replace `your-plugin-name` with the name of what you would like your plugin's directory to be named.
`git clone https://github.com/broskees/ddev-wp-plugin-boilerplate.git your-plugin-name`
Next navigate into your plugin directory.
`cd your-plugin-name`
Before starting the ddev environment, you must set the name and description of your plugin in `plugin/composer.json`.
Start the ddev environment.
`cd your-plugin-name && ddev start`
You should now be able to access your WordPress site at `http://your-plugin-name.ddev.site`.
The boilerplate is setup so that the `plugin` directory is the root of your plugin. Don't rename this directory. That's where the development of your plugin will happen.
Under the hood composer will pull the latest WordPress version and install it in the `wordpress` directory. The `wordpress` directory is then set as the document root for ddev. Finally we mount the `plugin` directory to the `wp-content/plugins` directory in the WordPress installation.