PHPackages                             automattic/jetpack-explat - 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. automattic/jetpack-explat

ActiveJetpack-library[Utility &amp; Helpers](/categories/utility)

automattic/jetpack-explat
=========================

A package for running A/B tests on the Experimentation Platform (ExPlat) in the plugin.

v0.4.17(1mo ago)212.4k↓34.4%12GPL-2.0-or-laterPHPPHP &gt;=7.2CI passing

Since Jul 29Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/Automattic/jetpack-explat)[ Packagist](https://packagist.org/packages/automattic/jetpack-explat)[ RSS](/packages/automattic-jetpack-explat/feed)WikiDiscussions trunk Synced 1mo ago

READMEChangelogDependencies (8)Versions (78)Used By (2)

explat
======

[](#explat)

A package for running A/B tests on the Experimentation Platform (ExPlat) in the plugin.

How to install Jetpack ExPlat
-----------------------------

[](#how-to-install-jetpack-explat)

Run `composer require automattic/jetpack-explat` and `pnpm install -S "@automattic/jetpack-explat"` in the root folder of your project.

Using this package in your WordPress plugin
-------------------------------------------

[](#using-this-package-in-your-wordpress-plugin)

In the PHP method that initializes your project, call the following static method to initialize the ExPlat API and register its endpoints:

```
use Automattic\Jetpack\ExPlat;

ExPlat::init();
```

In your React code, import the `Experiment` component and start running experiments:

```
import { Experiment } from '@automattic/jetpack-explat';

const DefaultExperience = __( 'Control title' );
const TreatmentExperience = __( 'Treatment title' );
const LoadingExperience = ⏰;

;
```

If you plan on using this package in your WordPress plugin, we would recommend that you use [Jetpack Autoloader](https://packagist.org/packages/automattic/jetpack-autoloader) as your autoloader. This will allow for maximum interoperability with other plugins that use this package as well.

Security
--------

[](#security)

Need to report a security vulnerability? Go to  or directly to our security bug bounty site .

License
-------

[](#license)

Jetpack ExPlat is licensed under [GNU General Public License v2 (or later)](./LICENSE.txt)

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance90

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~8 days

Total

76

Last Release

56d ago

PHP version history (2 changes)v0.1.0PHP &gt;=7.0

v0.2.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c5869ecbb8e0eac7e8b8e0f3cf7bdd8d5fcdc4abc10a72281872c53f8639d44?d=identicon)[automattic](/maintainers/automattic)

---

Top Contributors

[![anomiex](https://avatars.githubusercontent.com/u/1030580?v=4)](https://github.com/anomiex "anomiex (98 commits)")[![tbradsha](https://avatars.githubusercontent.com/u/32492176?v=4)](https://github.com/tbradsha "tbradsha (82 commits)")[![manzoorwanijk](https://avatars.githubusercontent.com/u/18226415?v=4)](https://github.com/manzoorwanijk "manzoorwanijk (27 commits)")[![gmjuhasz](https://avatars.githubusercontent.com/u/36671565?v=4)](https://github.com/gmjuhasz "gmjuhasz (21 commits)")[![bindlegirl](https://avatars.githubusercontent.com/u/1242807?v=4)](https://github.com/bindlegirl "bindlegirl (20 commits)")[![sergeymitr](https://avatars.githubusercontent.com/u/1341249?v=4)](https://github.com/sergeymitr "sergeymitr (16 commits)")[![zinigor](https://avatars.githubusercontent.com/u/374293?v=4)](https://github.com/zinigor "zinigor (15 commits)")[![dilirity](https://avatars.githubusercontent.com/u/11799079?v=4)](https://github.com/dilirity "dilirity (11 commits)")[![jeherve](https://avatars.githubusercontent.com/u/426388?v=4)](https://github.com/jeherve "jeherve (6 commits)")[![ice9js](https://avatars.githubusercontent.com/u/8056203?v=4)](https://github.com/ice9js "ice9js (6 commits)")[![chihsuan](https://avatars.githubusercontent.com/u/4344253?v=4)](https://github.com/chihsuan "chihsuan (6 commits)")[![kraftbj](https://avatars.githubusercontent.com/u/88897?v=4)](https://github.com/kraftbj "kraftbj (6 commits)")[![IanRamosC](https://avatars.githubusercontent.com/u/5714212?v=4)](https://github.com/IanRamosC "IanRamosC (5 commits)")[![CGastrell](https://avatars.githubusercontent.com/u/157240?v=4)](https://github.com/CGastrell "CGastrell (3 commits)")[![ArSn](https://avatars.githubusercontent.com/u/2803693?v=4)](https://github.com/ArSn "ArSn (3 commits)")[![LiamSarsfield](https://avatars.githubusercontent.com/u/43409125?v=4)](https://github.com/LiamSarsfield "LiamSarsfield (3 commits)")[![elliottprogrammer](https://avatars.githubusercontent.com/u/11078128?v=4)](https://github.com/elliottprogrammer "elliottprogrammer (2 commits)")[![annacmc](https://avatars.githubusercontent.com/u/30754158?v=4)](https://github.com/annacmc "annacmc (2 commits)")[![ebinnion](https://avatars.githubusercontent.com/u/1126811?v=4)](https://github.com/ebinnion "ebinnion (2 commits)")[![grzegorz-cp](https://avatars.githubusercontent.com/u/112354940?v=4)](https://github.com/grzegorz-cp "grzegorz-cp (2 commits)")

### Embed Badge

![Health badge](/badges/automattic-jetpack-explat/health.svg)

```
[![Health](https://phpackages.com/badges/automattic-jetpack-explat/health.svg)](https://phpackages.com/packages/automattic-jetpack-explat)
```

###  Alternatives

[automattic/jetpack

Jetpack supercharges your self‑hosted WordPress site with the awesome cloud power of WordPress.com

3621.9k](/packages/automattic-jetpack)[winter/storm

Winter CMS Storm Library

46239.3k6](/packages/winter-storm)[krayin/krayin-package-generator

Krayin Package Generator

2196.7k2](/packages/krayin-krayin-package-generator)

PHPackages © 2026

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