PHPackages                             pantheon-systems/pantheon-edge-integrations - 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. pantheon-systems/pantheon-edge-integrations

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

pantheon-systems/pantheon-edge-integrations
===========================================

Helper class for content personalization.

v1.1.0(3y ago)35.3k↑50%2[2 issues](https://github.com/pantheon-systems/pantheon-edge-integrations/issues)5MITPHP

Since Feb 4Pushed 1y ago11 watchersCompare

[ Source](https://github.com/pantheon-systems/pantheon-edge-integrations)[ Packagist](https://packagist.org/packages/pantheon-systems/pantheon-edge-integrations)[ RSS](/packages/pantheon-systems-pantheon-edge-integrations/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (5)

Pantheon Edge Integrations
==========================

[](#pantheon-edge-integrations)

Archived project
----------------

[](#archived-project)

This project is **archived** as of August 2024 as it no longer receives active development. The architecture provided by the tools in this SDK and the related projects are still valid and will continue to work on Pantheon AGCDN. However, we will not be responding to issues or pull requests or building these tools out more than they are already.

[![Unsupported](https://camo.githubusercontent.com/628b81b854d88f0f44cf81e33f54ab504377a35db3986497241f6d5d75c01a2b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70616e7468656f6e2d646570726563617465642d79656c6c6f773f6c6f676f3d70616e7468656f6e26636f6c6f723d464644433238)](https://docs.pantheon.io/oss-support-levels#deprecated) [![Packagist Release Version](https://camo.githubusercontent.com/b1106dcb0538b6fb6881f86a36a92d15802e9f2f9df504fd243bdbe0e55ce34b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70616e7468656f6e2d73797374656d732f70616e7468656f6e2d656467652d696e746567726174696f6e73)](https://camo.githubusercontent.com/b1106dcb0538b6fb6881f86a36a92d15802e9f2f9df504fd243bdbe0e55ce34b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70616e7468656f6e2d73797374656d732f70616e7468656f6e2d656467652d696e746567726174696f6e73)[![Build Status](https://github.com/pantheon-systems/pantheon-edge-integrations/actions/workflows/main.yml/badge.svg)](https://github.com/pantheon-systems/pantheon-edge-integrations/actions/workflows/main.yml/badge.svg)

Pantheon Edge Integrations is a PHP library which uses header data to provide a personalization object, to be used for personalizing content for each user.

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

[](#installation)

Pantheon Edge Integrations can be installed via Composer from [Packagist](https://packagist.org/packages/pantheon-systems/pantheon-edge-integrations)...

```
composer require pantheon-systems/pantheon-edge-integrations
```

Usage
-----

[](#usage)

To make use of the PHP library, ensure PHP can use the class. After which, it's possible to etiher call the library through instanced methods, or through the global methods.

```
use Pantheon\EI\HeaderData;
```

### Instanced Methods

[](#instanced-methods)

Once the class is available, `headerData` objects can be instantiated to make use of the API and methods can be called on it.

```
$headerData = new HeaderData();
```

#### getHeader($key)

[](#getheaderkey)

Uses header key to return raw header data.

```
$headerData->getHeader('Audience');
// => "geo:US"

$headerData->getHeader('Interest');
// => "27"

$headerData->getHeader('Role');
// => "subscriber"
```

#### parseHeader($key)

[](#parseheaderkey)

Uses header key to return parsed header data array.

```
$headerData->getHeader('Audience');
// => [geo => US]

$headerData->getHeader('Interest');
// => [0 => 27]

$headerData->getHeader('Role');
// => "subscriber"
```

#### returnPersonalizationObject()

[](#returnpersonalizationobject)

Returns an array with personalization data.

```
$headerData->returnPersonalizedObject();
// => [
//        Audience => [ geo => US ]
//        Interest => [ 0 => 27 ]
//        Role => subscriber
//    ]
```

#### returnVaryHeader($key)

[](#returnvaryheaderkey)

Returns vary header array, based on header data.

### Global Methods

[](#global-methods)

There are also static methods defined within the class to help assist in retrieving data without having to instantiate the object yourself.

#### HeaderData::personalizationObject()

[](#headerdatapersonalizationobject)

Gets the global personalizaition object.

```
Pantheon\EI\HeaderData::personalizationObject();
// => [
//        Audience => [ geo => US ]
//        Interest => [ 0 => 27 ]
//        Role => subscriber
//    ]
```

#### HeaderData::parse($key)

[](#headerdataparsekey)

Parses a global header by key using a specified regex.

```
Pantheon\EI\HeaderData::parse('Audience');
// => [geo => US]
```

#### HeaderData::header($key)

[](#headerdataheaderkey)

Gets the global header data based on the given key.

```
Pantheon\EI\HeaderData::header('Audience');
// => geo:US
```

#### HeaderData::varyHeader()

[](#headerdatavaryheader)

Returns vary header array based on the global data.

```
Pantheon\EI\HeaderData::varyHeader('geo');
```

Development
-----------

[](#development)

[PHPUnit](https://phpunit.de/) is used to run the [tests](tests).

```
composer install
composer test
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.9% 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 ~45 days

Total

4

Last Release

1421d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a89f5f15357797cbd6ec7833a28626478ae3c0ceb5fa1faa8a26d0960584c65?d=identicon)[pantheon-systems](/maintainers/pantheon-systems)

![](https://www.gravatar.com/avatar/af6c0ce1d250a8a8edc57b4759dabc3d5f7956fc105450bba7fc5d2eb5b74362?d=identicon)[jazzsequence](/maintainers/jazzsequence)

---

Top Contributors

[![jazzsequence](https://avatars.githubusercontent.com/u/991511?v=4)](https://github.com/jazzsequence "jazzsequence (56 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (26 commits)")[![kmjacobs](https://avatars.githubusercontent.com/u/4055094?v=4)](https://github.com/kmjacobs "kmjacobs (25 commits)")[![enotick](https://avatars.githubusercontent.com/u/5909513?v=4)](https://github.com/enotick "enotick (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/pantheon-systems-pantheon-edge-integrations/health.svg)

```
[![Health](https://phpackages.com/badges/pantheon-systems-pantheon-edge-integrations/health.svg)](https://phpackages.com/packages/pantheon-systems-pantheon-edge-integrations)
```

###  Alternatives

[wickedreports/phpcs-pre-commit-hook

PHPCS check before commit

1920.9k](/packages/wickedreports-phpcs-pre-commit-hook)

PHPackages © 2026

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