GithubHelp home page GithubHelp logo

wordpress-plugin-boilerplate's Introduction

What is this boilerplate

This boilerplate is a fork of WordPress Boilerplate but with some additional features and improvements. It is a modern, organized, and object-oriented foundation for building high-quality WordPress plugins.

Features of this boilerplate

  • Namespaces support using composer
  • Automatic Namespace prefixing with Strauss
  • Easy Shortcode, CLI Command Registration through the loader
  • PHPStan with ready-made Github actions
  • PHPCS with ready-made Github actions
  • Bud.js for simple bundling and build of assets
  • ESLint built in
  • Ready made Github actions, for building and bundling

Setup

Step 1: Create Your Project

Run the following command to create your project. This will download the boilerplate and automatically run the script for initial configuration:

composer create-project juvo/wordpress-plugin-boilerplate path/to/your-new-plugin

Step 2: Configure Your Plugin (Automatic Prompt)

Upon project creation, you'll be guided through a series of prompts to configure your plugin:

  • Plugin Name: Enter the name of your plugin.
  • Namespace (optional): Suggests a default namespace based on your plugin name but allows customization.
  • Plugin Slug (optional): Choose a slug for your plugin; a default based on your plugin name is suggested.

Your inputs will automatically tailor the boilerplate to match your plugin's identity.

Step 3: Finalization (Optional)

After configuration, the setup will finalize by updating files, renaming relevant items, and performing cleanup actions, including:

  • Replacing placeholders with your specified details.
  • Renaming files to match your plugin's namespace and slug.
  • Running composer update and npm install to install dependencies.
  • Cleaning up by removing the setup.php file.

At this point the plugin is set up and good to go. Now it is your time to change to adjust plugin and readme headers according to your needs.

Wrapping Up

That's it! Your plugin is now ready for development. Dive into creating your next remarkable WordPress plugin with ease and efficiency.

wordpress-plugin-boilerplate's People

Contributors

juvojustin avatar dependabot[bot] avatar

Stargazers

 avatar  avatar Brian Henry avatar George Thompson avatar

Watchers

 avatar

wordpress-plugin-boilerplate's Issues

Create a WS Form SCSS framework to make styling easier

Some things are not covered by ACSS form styling

  • Option for label inside input field including animation (perhaps there are additional common options we can include)
  • select2 dropdown styling
  • radio/checkbox field styling
  • file field styling
  • ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.