PHPackages                             ashleyfae/contextwp-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. ashleyfae/contextwp-sdk

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

ashleyfae/contextwp-sdk
=======================

WordPress plugin intetration with ContextWP.

1.1.0(1y ago)2186↓77.8%[2 issues](https://github.com/ashleyfae/contextwp-sdk/issues)MITPHPPHP &gt;=7.4

Since Apr 18Pushed 1y ago2 watchersCompare

[ Source](https://github.com/ashleyfae/contextwp-sdk)[ Packagist](https://packagist.org/packages/ashleyfae/contextwp-sdk)[ RSS](/packages/ashleyfae-contextwp-sdk/feed)WikiDiscussions main Synced 3w ago

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

ContextWP SDK
=============

[](#contextwp-sdk)

A plug-and-play library to integrate with [ContextWP](https://contextwp.com)

Usage
-----

[](#usage)

For tailored usage, see your Integration instructions within [ContextWP](https://contextwp.com).

More generic usage is as follows:

Include this package within your plugin, using Composer:

```
composer require ashleyfae/contextwp-sdk

```

Make sure your WordPress plugin is including the autoload file, if not already:

```
require_once __DIR__.'/vendor/autoload.php';
```

Then register your product:

```
add_action('contextwp_sdk_loaded', function (\ContextWP\SDK $sdk) {
    $sdk->register(
        (new \ContextWP\ValueObjects\Product('PUBLIC_KEY_HERE', 'PRODUCT_UUID_HERE'))
    );
});
```

Your public key and product UUID can be obtained from your ContextWP product dashboard.

### Collect your plugin's version number

[](#collect-your-plugins-version-number)

By default, the SDK will include non-plugin-specific environment information, such as PHP version, WordPress version, and more. You can also include your plugin's version number in the data, by using the `setVersion()` method like so:

```
add_action('contextwp_sdk_loaded', function (\ContextWP\SDK $sdk) {
    $sdk->register(
        (new \ContextWP\ValueObjects\Product('PUBLIC_KEY_HERE', 'PRODUCT_UUID_HERE'))
            ->setVersion($yourVersionHere)
    );
});
```

### Testing

[](#testing)

If you want to test that the SDK is set up correctly and definitely running, you can run this WP-CLI command:

```
wp contextwp checkin

```

This is the output you should see if it's working correctly (UUIDs will differ):

```
Sending check-ins for PK: af272e18-bea7-42fd-b531-f898fbd55b25
Response code: 202
Response body: {"accepted":["ca9d46ca-d5b7-4a85-8411-aeec690a6d26"],"rejected":[]}

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance21

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Total

5

Last Release

488d ago

PHP version history (2 changes)1.0-beta1PHP &gt;=7.1

1.1.0PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6324272?v=4)[Ashley Gibson](/maintainers/ashleyfae)[@ashleyfae](https://github.com/ashleyfae)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ashleyfae-contextwp-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/ashleyfae-contextwp-sdk/health.svg)](https://phpackages.com/packages/ashleyfae-contextwp-sdk)
```

PHPackages © 2026

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