PHPackages                             devkabir/wordpress-plugin - 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. devkabir/wordpress-plugin

ActiveWordpress-plugin

devkabir/wordpress-plugin
=========================

A WordPress plugin boilerplate/template with modular architecture

01PHP

Since Nov 2Pushed 6mo agoCompare

[ Source](https://github.com/devkabir/wordpress-plugin)[ Packagist](https://packagist.org/packages/devkabir/wordpress-plugin)[ RSS](/packages/devkabir-wordpress-plugin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Your Plugin Name
================

[](#your-plugin-name)

A brief description of what your plugin does.

Description
-----------

[](#description)

This plugin provides \[describe main functionality here\]. It is built with a modular architecture following WordPress best practices.

Creating a New Plugin from this Template
----------------------------------------

[](#creating-a-new-plugin-from-this-template)

You can create a new plugin from this template using Composer:

```
composer create-project devkabir/wordpress-plugin my-new-plugin
```

The setup script will automatically run and prompt you for:

- Plugin Name
- Plugin Slug
- Plugin Description
- Plugin URI
- Author Name
- Author Email
- Author URI
- Package Namespace

All placeholder values in the template will be automatically replaced with your inputs.

### Manual Setup

[](#manual-setup)

If you prefer to set up manually or need to run the setup again:

```
composer run setup
```

Or run the setup script directly:

```
php setup.php
```

Features
--------

[](#features)

- Modular architecture with separate Admin, Frontend, and Common components
- PSR-4 autoloading
- WordPress coding standards compliant
- Easy customization through hooks and filters
- Clean uninstall process

Requirements
------------

[](#requirements)

- WordPress 5.8 or higher
- PHP 7.4 or higher
- Composer (for installation and development)

Installation
------------

[](#installation)

### Via Composer (Recommended)

[](#via-composer-recommended)

```
composer create-project devkabir/wordpress-plugin my-plugin-name
cd my-plugin-name
composer install
```

### Manual Installation

[](#manual-installation)

1. Download the plugin files
2. Upload the plugin folder to `/wp-content/plugins/` directory
3. Activate the plugin through the 'Plugins' menu in WordPress
4. Configure the plugin settings if needed

File Structure
--------------

[](#file-structure)

```
wordpress-plugin/
├── includes/
│   ├── Admin/          # Admin-specific functionality
│   ├── Common/         # Shared functionality
│   ├── Frontend/       # Frontend-specific functionality
│   ├── autoload.php    # Autoloader for plugin classes
│   ├── constants.php   # Plugin constants
│   ├── filters.php     # Filter hooks
│   └── hooks.php       # Action hooks
├── plugin.php          # Main plugin file
├── uninstall.php       # Cleanup on uninstall
├── composer.json       # Composer configuration
├── setup.php           # Interactive setup script (auto-removed after setup)
└── README.md           # This file

```

Development
-----------

[](#development)

### Architecture

[](#architecture)

This plugin follows a modular architecture with separate components for:

- **Admin**: Backend/admin panel functionality
- **Frontend**: Public-facing features
- **Common**: Shared utilities and helpers

### Hooks and Filters

[](#hooks-and-filters)

The plugin provides various hooks and filters for extensibility. See `includes/hooks.php` and `includes/filters.php` for available hooks.

### Autoloading

[](#autoloading)

The plugin uses PSR-4 autoloading. All classes in the `includes/` directory are automatically loaded based on their namespace.

### Development Dependencies

[](#development-dependencies)

Install development dependencies:

```
composer install --dev
```

This includes:

- PHPUnit for testing
- WordPress Coding Standards (WPCS)

Changelog
---------

[](#changelog)

### 1.0.0

[](#100)

- Initial release

License
-------

[](#license)

This plugin is licensed under the GPL v2 or later.

```
Copyright (C) [Year] [Your Name]

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

```

Support
-------

[](#support)

For support, please \[contact method or issue tracker link\].

Contributing
------------

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

Credits
-------

[](#credits)

Developed by \[Your Name\]

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance46

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/32df0955a7eb0afc0f11799622fe8dc4ad85a7235a32488497ec38a2d163e923?d=identicon)[devkabir](/maintainers/devkabir)

---

Top Contributors

[![devkabir](https://avatars.githubusercontent.com/u/44431386?v=4)](https://github.com/devkabir "devkabir (4 commits)")

### Embed Badge

![Health badge](/badges/devkabir-wordpress-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/devkabir-wordpress-plugin/health.svg)](https://phpackages.com/packages/devkabir-wordpress-plugin)
```

PHPackages © 2026

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