PHPackages                             boxuk/boxuk-base-wp-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. boxuk/boxuk-base-wp-plugin

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

boxuk/boxuk-base-wp-plugin
==========================

v0.4.0(4y ago)31.2kGPL-2.0-or-laterPHP

Since Jun 23Pushed 1y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (7)Versions (5)Used By (0)

BoxUK WordPress Base Plugin
===========================

[](#boxuk-wordpress-base-plugin)

> This project is now abandoned. If you're interested in taking it over, get in touch. For alternatives, we'd recommend looking at [WordPress' create block package](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/). Though it differs from the functionality this packages provides, it's provided to support a more modern way of developing WordPress features.

A WordPress plugin that includes a number of things to help us work on WordPress projects.

[![GPLv2 License](https://camo.githubusercontent.com/4ba09da9ecffc49a46a64b420154c888a1b4a0d5514ceab4b6503a1778080d47/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f626f78756b2f626f78756b2d626173652d77702d706c7567696e)](https://github.com/boxuk/boxuk-base-wp-plugin/blob/6675942f8babaa9447c1224225eae153981af660/LICENSE)

WP-CLI
------

[](#wp-cli)

We provide the following useful WP-CLI commands:

- `wp i18n-twig make-pot` - which is an extension of `wp i18n` to add twig support to the `make-pot` command (only available if timber and twig is installed)
- `wp scaffold boxuk-mu-plugin` - which is an extension of `wp scaffold` to add support for scaffolding an opinionated `mu-plugin`

DependencyInjection
-------------------

[](#dependencyinjection)

The plugin is registered with the container from the [Box UK WP Project Skeleton](https://github.com/boxuk/wp-project-skeleton) via an extension within `src/DependencyInjection` this works just like Symfony bundles, for information in the [Symfony docs](https://symfony.com/doc/master/components/dependency_injection/compilation.html#managing-configuration-with-extensions).

Hooks
-----

[](#hooks)

Added support for tagging services in order to decouple hooks from the service, e.g.

```
services:
    _defaults:
        autowire: true
        autoconfigure: true

    BoxUk\Mu\Plugins\MyPlugin\MyService:
        tags:
            - { name: 'wp_hook', action: 'init', method: 'something_to_do_on_init' }
```

`action` can be replaced with `filter` when using a filter. `priority` and `accepted_args` also supported.

DB Repositories
---------------

[](#db-repositories)

We wrap database query access in repository classes for an easier abstraction dealing with querying the database. This follows a loose [repository pattern](https://shawnmc.cool/2015-01-08_the-repository-pattern).

Feature Flags
-------------

[](#feature-flags)

There is a helper you can use when developing with feature flags which will allow you to configure flags in yaml. Usage is as follows:

```
boxuk_container()->get('BoxUk\Plugins\Base\FeatureFlag\FeatureFlagManager')->register_from_yaml(
__DIR__ . '/flags.yaml' );
```

Gutenberg
---------

[](#gutenberg)

It's useful to allow a phased approach to enabling gutenberg across a site. This helper will allow you to use tags in order to 'turn on' gutenberg for select posts easily.

Security
--------

[](#security)

Provides a number of security enhancements by default:

- Remove users endpoints from the REST API
- 404s author queries to protect against author enumeration
- Sets X-Frame-Options header to SAMEORIGIN to protect against clickjacking

License
-------

[](#license)

[GPLv2](https://choosealicense.com/licenses/gpl-2.0/)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~41 days

Total

4

Last Release

1710d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c8c170d78af034f9aee1c84e279b97e5b61b549ce8b8519ed8da81402ac8e96?d=identicon)[BoxUK](/maintainers/BoxUK)

---

Top Contributors

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

---

Tags

wordpresswordpress-plugin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/boxuk-boxuk-base-wp-plugin/health.svg)

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

###  Alternatives

[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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