PHPackages                             thomaslorentsen/adyen-hpp-hmac - 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. [Payment Processing](/categories/payments)
4. /
5. thomaslorentsen/adyen-hpp-hmac

ActiveLibrary[Payment Processing](/categories/payments)

thomaslorentsen/adyen-hpp-hmac
==============================

HMAC Generator for Adyen Hosted Payment Pages

v0.3.1(8y ago)092MITPHP

Since Aug 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/thomaslorentsen/adyen-hpp-hmac)[ Packagist](https://packagist.org/packages/thomaslorentsen/adyen-hpp-hmac)[ RSS](/packages/thomaslorentsen-adyen-hpp-hmac/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (7)Dependencies (2)Versions (8)Used By (0)

[![Build Status](https://camo.githubusercontent.com/6012f5c0bf55b7a7bc6f0a7180bf7a05a272797e7c8c88ed1619c0091c4645ea/68747470733a2f2f7472617669732d63692e6f72672f74686f6d61736c6f72656e7473656e2f616479656e2d6870702d686d61632e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/thomaslorentsen/adyen-hpp-hmac)[![Packagist](https://camo.githubusercontent.com/09f533f9cc59801450ae5434d2058870ed28c7b9d2f3eaede8295d43b2b38992/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74686f6d61736c6f72656e7473656e2f616479656e2d6870702d686d61632e737667)](https://packagist.org/packages/thomaslorentsen/adyen-hpp-hmac)[![Coverage Status](https://camo.githubusercontent.com/2982b4228be4347d4287a487e09a40656cf2718e728b112720453504dbabb559/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f74686f6d61736c6f72656e7473656e2f616479656e2d6870702d686d61632f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/thomaslorentsen/adyen-hpp-hmac?branch=master)

Adyen HHP HMAC Generator
========================

[](#adyen-hhp-hmac-generator)

HMAC Generator for Adyen Hosted Payment Pages

Installation
============

[](#installation)

Install with composer

```
composer require thomaslorentsen/adyen-hpp-hmac
```

Usage
-----

[](#usage)

```
$hmacKey = 'YOUR_HMAC_KEY'
$params = [
    "merchantReference" => "SKINTEST-123456789",
    "merchantAccount"   => "merchantAccount",
    "currencyCode"      => "GBP",
    "paymentAmount"     => "2000",
    "sessionValidity"   => "2020-12-25T10:31:06Z",
    "shipBeforeDate"    => "2017-08-25",
    "shopperLocale"     => "en_GB",
    "skinCode"          => "skinCode",
    "brandCode"         => "paypal_ecs",
    "shopperEmail"      => "test@adyen.com",
    "shopperReference"  => "123",
];
```

You can call the function directory to get a hash

```
adyen_hmac($hmacKey, $params);
```

Get a hash using the class

```
$signature = new Signature();
$hash = $signature->generate($hmacKey, $params);
```

Validate a hash

```
$signature = new Signature($hmacKey);
$hash = $signature->validate($signature, $params);
```

Testing
=======

[](#testing)

```
vendor/bin/phpunit
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

7

Last Release

3169d ago

### Community

Maintainers

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

---

Top Contributors

[![thomaslorentsen](https://avatars.githubusercontent.com/u/11646737?v=4)](https://github.com/thomaslorentsen "thomaslorentsen (30 commits)")

---

Tags

adyenadyen-hpphmacpayment-integrationphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thomaslorentsen-adyen-hpp-hmac/health.svg)

```
[![Health](https://phpackages.com/badges/thomaslorentsen-adyen-hpp-hmac/health.svg)](https://phpackages.com/packages/thomaslorentsen-adyen-hpp-hmac)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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