kerryrandolph/modern-wp-plugin

A modern starting point for building a Wordpress plugin

dev-master 2019-07-02 17:50 UTC

This package is auto-updated.

Last update: 2024-03-29 03:59:18 UTC


README

A modern starting point for building wordpress plugins

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock

Requirements

  • PHP 7.2+

Features

  • Dependency Injection (PHP-DI)
  • Unit Testing (PHPUnit)
  • Hook Annotations
  • Carbon Fields (Metabox)
  • Logging (Monolog)
  • Environment loading (PHP Dotenv)

Install

Via Composer

$ composer create-project kerryrandolph/modern-wp-plugin-jumpstart

Setup

  1. Modify main plugin file header (modern-wp-plugin-jumpstart.php)
  2. Rename main plugin file
  3. Rename root namespace: Do a global search/replace for "UniqueRootNamespace"

Usage

Happy coding!

See WordpressExample.php for tips.

License

Modern WP Plugin Jumpstart is released under the MIT License.