PHPackages                             abhishek-pokhriyal/wp-plugin-boilerplate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. abhishek-pokhriyal/wp-plugin-boilerplate

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

abhishek-pokhriyal/wp-plugin-boilerplate
========================================

A boilerplate to create WordPress plugin.

1.2.0(5y ago)29[4 issues](https://github.com/ColoredCow/wp-plugin-boilerplate/issues)GPL-3.0-or-laterPHPPHP ^7.2

Since Sep 17Pushed 4y ago3 watchersCompare

[ Source](https://github.com/ColoredCow/wp-plugin-boilerplate)[ Packagist](https://packagist.org/packages/abhishek-pokhriyal/wp-plugin-boilerplate)[ RSS](/packages/abhishek-pokhriyal-wp-plugin-boilerplate/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

WP Plugin Boilerplate
=====================

[](#wp-plugin-boilerplate)

A boilerplate to create WordPress plugin with rapid assets compilation using Grunt.

Prerequisites
-------------

[](#prerequisites)

1. NPM
2. Grunt

Installation &amp; getting started
----------------------------------

[](#installation--getting-started)

### Via `composer`

[](#via-composer)

1. In your plugin's (empty) root directory, create a `composer.json` file and paste the following contents in it.

    ```
    {
      "require": {
        "composer/installers": "1.9.0",
        "abhishek-pokhriyal/wp-plugin-boilerplate": "^1.0"
      },
      "extra": {
        "installer-paths": {
        "./" : ["abhishek-pokhriyal/wp-plugin-boilerplate"]
        }
      }
    }
    ```
2. Run `compser install`. This will put the boilerplate code in the plugin's root directory (it will also overwrite the contents of `composer.json` file created in the previous step.)

### Manually

[](#manually)

1. Clone the repository inside your `wp-content/plugins/` directory.

    ```
    git clone https://github.com/abhishek-pokhriyal/wp-plugin-boilerplate.git
    ```
2. Rename file and variable names according to your plugin name.

    1. Find and replace the following names:

        Sl NoFindReplace1`WP Plugin Boilerplate``My Plugin Name`2`wp-plugin-boilerplate``my-plugin-name`3`wp_plugin_boilerplate``my_plugin_name`4`WpPluginBoilerplate``MyPluginName`5`WPB_``MPN_`6`WPB()``MPN()`7`wpb-``mpn-`
    2. Rename files containing `wp-plugin-boilerplate` to `my-plugin-name`:

        Sl NoDefault file nameYour custom file name1`wp-plugin-boilerplate.php``my-plugin-name.php`2`class-wp-plugin-boilerplate.php``class-my-plugin-name.php`
3. Follow [Build steps for assets](#build-steps-for-assets) if any assets development/changes are involved.
4. If your plugin does not need Bootstrap, you can delete the `bootstrap` and `utilities` directory from the `assets/css` directory and remove all the import containing bootstrap from `style.scss` .
5. Now, you're ready to get started for the development.

Build steps for assets
----------------------

[](#build-steps-for-assets)

1. `cd` into the plugin root directory
2. Install node dependencies

    ```
    npm install
    ```
3. Generate the compiled and minified files, run

    ```
    grunt
    ```
4. Generate the compiled and minified files while development (as soon as you hit `CMD + S`), run

    ```
    grunt watch
    ```

Plugin structure
----------------

[](#plugin-structure)

```
+-- assets/
|   +-- css/
|       +-- bootstrap/
|       +-- utilities/
|   +-- js/
|       +-- admin/
|       +-- frontend/
|
+-- includes/
|   +-- class-wp-plugin-boilerplate.php
|
+-- node_modules/
+-- .eslintignore
+-- .eslintrc.js
+-- .gitignore
+-- Gruntfile.js
+-- license.txt
+-- package-lock.json
+-- package.json
+-- README.md
+-- wp-plugin-boilerplate.php

```

License
-------

[](#license)

WordPress Plugin BoilerPlate is released under the [GPLv3](https://www.gnu.org/licenses/gpl-3.0.html)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

3

Last Release

2059d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11f09e1fb27089c7a2e00e25fe495e0d3fbdec9d6414babb8819e6c545ee7e57?d=identicon)[pokhi](/maintainers/pokhi)

---

Top Contributors

[![pokhiii](https://avatars.githubusercontent.com/u/11808845?v=4)](https://github.com/pokhiii "pokhiii (13 commits)")[![kuldeep3](https://avatars.githubusercontent.com/u/37093310?v=4)](https://github.com/kuldeep3 "kuldeep3 (3 commits)")

### Embed Badge

![Health badge](/badges/abhishek-pokhriyal-wp-plugin-boilerplate/health.svg)

```
[![Health](https://phpackages.com/badges/abhishek-pokhriyal-wp-plugin-boilerplate/health.svg)](https://phpackages.com/packages/abhishek-pokhriyal-wp-plugin-boilerplate)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
