PHPackages                             rebelcode/wp-plugin-sdk - 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. rebelcode/wp-plugin-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rebelcode/wp-plugin-sdk
=======================

An SDK used by RebelCode to build WordPress plugins.

23.0kPHP

Since Feb 16Pushed 2y ago2 watchersCompare

[ Source](https://github.com/RebelCode/wp-plugin-sdk)[ Packagist](https://packagist.org/packages/rebelcode/wp-plugin-sdk)[ RSS](/packages/rebelcode-wp-plugin-sdk/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

WordPress Plugin SDK
====================

[](#wordpress-plugin-sdk)

An opinionated SDK for building modular WordPress plugins.

This is primarily built for RebelCode plugins. Feel free to use it for your own projects, but kindly be aware that we may not accept pull requests that hinder our own development.

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

[](#installation)

Install with Composer:

```
composer require rebelcode/wp-plugin-sdk

```

Usage
-----

[](#usage)

Here's a quick example:

```
/**
 * @wordpress-plugin
 * Plugin Name: My Plugin
 * Version: 0.1
 */

use RebelCode\WpSdk\Plugin;

add_action('plugins_loaded', function () {
    $plugin = Plugin::create(__FILE__);
    $plugin->run();
})
```

```
// modules.php
return [
    'shortcode' => new MyShortcodeModule(),
];
```

```
// MyShortcodeModule.php
use Dhii\Services\Factories\FuncService;
use Dhii\Services\Extensions\ArrayExtension;
use Psr\Container\ContainerInterface;
use RebelCode\WpSdk\Module;
use RebelCode\WpSdk\Wp\Shortcode;

class MyShortcodeModule extends Module
{
    public function getFactories(): array
    {
        return [
            // Services for the [rain] shortcode and its render function
            'shortcode' => Shortcode::factory('rain', 'render_fn'),
            'render_fn' => new FuncService(function () {
                return 'The rain in Spain stays mainly in the plain';
            }),
        ];
    }

    public function getExtensions() : array{
        return [
            // Extend WordPress's shortcode list
            'wp/shortcodes' => new ArrayExtension(['shortcode']),
        ];
    }
}
```

The full documentation can be found in the repository's [Wiki](https://github.com/rebelcode/wp-plugin-sdk/wiki).

License
-------

[](#license)

GPL-3.0+ © RebelCode

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity22

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/a8036caaa483e3f8a21d0083284bd508f5ada08ad45b790b5075ecff49f09b6b?d=identicon)[rebelcode](/maintainers/rebelcode)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/rebelcode-wp-plugin-sdk/health.svg)

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

###  Alternatives

[leo108/laravel_cas_server

A laravel package provides CAS server implementation

894.7k](/packages/leo108-laravel-cas-server)

PHPackages © 2026

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