PHPackages                             wp-media/wp-beta - 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. wp-media/wp-beta

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

wp-media/wp-beta
================

Beta for WordPress plugins

v1.0.3(9mo ago)09.9k↓28.2%GPL-3.0-or-laterPHPPHP &gt;=7.3

Since Aug 21Pushed 9mo agoCompare

[ Source](https://github.com/wp-media/wp-beta)[ Packagist](https://packagist.org/packages/wp-media/wp-beta)[ RSS](/packages/wp-media-wp-beta/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (4)Dependencies (9)Versions (6)Used By (0)

WP Beta
=======

[](#wp-beta)

A library to enable a beta plugin update for WordPress plugins on the repository

Overview
========

[](#overview)

WP Beta provides an automated integration to offer a beta option in WordPress plugins.

How it works is by hijacking the update plugins data, checking if the version defined on the `trunk` of the repository contains `beta`. If it does, it will modify the update data to point to the trunk instead of the stable tag version.

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

[](#installation)

### Via Composer

[](#via-composer)

Add the package to your project using Composer:

```
composer require wp-media/wp-beta
```

Configuration
-------------

[](#configuration)

The library is composed of 2 main classes:

- `Optin` handles the status of the opt-in for beta
- `Beta` manages the update plugins data modification, beta messages, and hooking into WordPress

How to use
----------

[](#how-to-use)

The library is built to be fully configured by parameters passed to the classes constructors, and functional with one init method.

Here is an example of how to initialize it:

```
$optin = new WPMedia\Beta\Optin( $plugin_slug, $capability );
$beta = new WPMedia\Beta\Beta( $optin, $file, $plugin_slug, $version, $update_message );

$beta->init();
```

You should not have to do more to enable the beta system.

### Parameters explaination

[](#parameters-explaination)

- `$plugin_slug`: The slug used for the plugin as prefix for option/transient
- `$capability`: The capability required to be able to modify the beta option
- `$optin`: The Optin class instance
- `$file`: The path of the plugin’s primary file relative to the plugins directory (for example `test-plugin/test-plugin.php`)
- `$version`: The current stable version of the plugin
- `$update_message`: Message to display when beta update is available (will be shown on the updates page and the plugins list page)

Deploy a beta version to the WordPress repository
-------------------------------------------------

[](#deploy-a-beta-version-to-the-wordpress-repository)

A modified version of the 10up action to deploy to the repository is available at  and can be used in your workflow to only release to trunk without tagging a new version.

You should modify your existing workflow to conditionally use the 10up deploy or this one, based on the release version containing `beta`.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance55

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

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.

###  Release Activity

Cadence

Every ~6 days

Total

4

Last Release

297d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5564218f7cd2ccf4542a09b7c5436e61e6b370c97fb3b04db1c5bbc0cc67e3c1?d=identicon)[wpmedia](/maintainers/wpmedia)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/wp-media-wp-beta/health.svg)

```
[![Health](https://phpackages.com/badges/wp-media-wp-beta/health.svg)](https://phpackages.com/packages/wp-media-wp-beta)
```

PHPackages © 2026

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