PHPackages                             tp/paydirekt-php - 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. [API Development](/categories/api)
4. /
5. tp/paydirekt-php

ActiveLibrary[API Development](/categories/api)

tp/paydirekt-php
================

Library that provides functionality to create valid request for the paydirekt REST API

4.0.1(8y ago)04.7k↓50%MITPHPPHP &gt;=5.5

Since Mar 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/boonkerz/paydirekt-php)[ Packagist](https://packagist.org/packages/tp/paydirekt-php)[ Docs](https://github.com/boonkerz/paydirekt-php)[ RSS](/packages/tp-paydirekt-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

paydirekt PHP Client
====================

[](#paydirekt-php-client)

[![Build Status](https://camo.githubusercontent.com/085c1db77060b897a366e5e35ea180432de170f49471a97dfb1ccac06d5551ff/68747470733a2f2f7472617669732d63692e6f72672f706179646972656b742f706179646972656b742d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/paydirekt/paydirekt-php)

PHP client implementation and samples for the [paydirekt REST API](https://www.paydirekt.de/haendler/merchant-api.html).

The source code demonstrates how to create valid requests for the paydirekt REST API using PHP.

Requirements
------------

[](#requirements)

- PHP 5.5 or later
- random\_compat (for cryptographically secure pseudo-random bytes)

Dev-Dependencies
----------------

[](#dev-dependencies)

- PHP cURL support (for integration tests)
- PHPUnit

Usage
-----

[](#usage)

With Composer installed, clone this repository and install with:

```
composer install

```

Run the unit and integration tests with:

```
composer test

```

The integration tests run against the actual sandbox endpoint.

HMAC Signature
--------------

[](#hmac-signature)

The HMAC signature (to be used in the `X-Auth-Code` header) can be created using the [`Hmac.php`](src/Paydirekt/Client/Security/Hmac.php) class.

```
$randomNonce = Nonce::createRandomNonce();
$signature = Hmac::signature($requestId, $timestamp, $apiKey, $apiSecret, $randomNonce)

```

API-Key and API-Secret for the your shop are provided via the paydirekt merchant portal. Be aware that there are different credentials for sandbox and production.

Please refer to [`ObtainTokenIntegrationTest.php`](test/Paydirekt/Client/ObtainTokenIntegrationTest.php) for a full example how to build an http request with all header fields and payload.

Security Advice
---------------

[](#security-advice)

Do never print sensitive information to log files. The following values should never be logged:

- API-Secret
- OAuth2 Access Token

License
-------

[](#license)

MIT License.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 52.4% 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 ~200 days

Total

5

Last Release

2926d ago

Major Versions

v0.3.0 → 4.0.02018-05-14

PHP version history (3 changes)v0.1.0PHP &gt;=5.4.44

v0.2.0PHP &gt;=5.4

v0.3.0PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/66e06a6246e1c24fddd75875770da06d3d4a5c37e4cad024bb55b5fd72ac13f1?d=identicon)[boonkerz](/maintainers/boonkerz)

---

Top Contributors

[![davidorlea](https://avatars.githubusercontent.com/u/9999461?v=4)](https://github.com/davidorlea "davidorlea (22 commits)")[![stombers-senacor](https://avatars.githubusercontent.com/u/14333984?v=4)](https://github.com/stombers-senacor "stombers-senacor (15 commits)")[![boonkerz](https://avatars.githubusercontent.com/u/277321?v=4)](https://github.com/boonkerz "boonkerz (4 commits)")[![mle86](https://avatars.githubusercontent.com/u/13321706?v=4)](https://github.com/mle86 "mle86 (1 commits)")

---

Tags

paydirekt

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tp-paydirekt-php/health.svg)

```
[![Health](https://phpackages.com/badges/tp-paydirekt-php/health.svg)](https://phpackages.com/packages/tp-paydirekt-php)
```

###  Alternatives

[tinify/tinify

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

2515.2M71](/packages/tinify-tinify)[ryanwinchester/netsuite-php

NetSuite PHP API wrapper

2012.6M5](/packages/ryanwinchester-netsuite-php)[corsinvest/cv4pve-api-php

Corsinvest Proxmox VE Client API PHP

801.4M](/packages/corsinvest-cv4pve-api-php)[keen-io/keen-io

A PHP library for reporting events to the Keen IO API

1332.3M7](/packages/keen-io-keen-io)[zzantares/proxmoxve

A simple PHP 5.5+ Proxmox API client.

17761.8k4](/packages/zzantares-proxmoxve)[snowcap/emarsys

Emarsys RestFull API client

381.2M](/packages/snowcap-emarsys)

PHPackages © 2026

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