PHPackages                             ticketpark/saferpay-json-api - 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. ticketpark/saferpay-json-api

ActiveLibrary[Payment Processing](/categories/payments)

ticketpark/saferpay-json-api
============================

A php library to use the json api of Saferpay

v10.0(2w ago)34327.8k↓20.9%281MITPHPPHP ^8.3CI passing

Since Jan 28Pushed 2w ago4 watchersCompare

[ Source](https://github.com/Ticketpark/SaferpayJsonApi)[ Packagist](https://packagist.org/packages/ticketpark/saferpay-json-api)[ Docs](https://github.com/Ticketpark/SaferpayJsonApi)[ RSS](/packages/ticketpark-saferpay-json-api/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (14)Versions (46)Used By (1)

SaferpayJsonApi
===============

[](#saferpayjsonapi)

[![Build Status](https://github.com/Ticketpark/SaferpayJsonApi/actions/workflows/tests.yml/badge.svg)](https://github.com/Ticketpark/SaferpayJsonApi/actions)

A php library to use the [Saferpay Json API](http://saferpay.github.io/jsonapi/).

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

[](#installation)

Add the library in your composer.json:

```
composer require ticketpark/saferpay-json-api

```

Usage
-----

[](#usage)

In order to perform a payment as you would typically do it in an online shop, you need to handle the following steps:

1. Initialize the payment page (see [/example/PaymentPage/example-initialize.php](/example/PaymentPage/example-initialize.php))
2. Redirect the user to the payment page and let them enter their payment data
3. Assert that the payment was successfully done (see [/example/PaymentPage/example-assert.php](/example/PaymentPage/example-assert.php))
4. Capture the payment to make it final (see [/example/Transaction/example-capture.php](/example/Transaction/example-capture.php))

Have a look at the [example folder](/example) for more.

Documentation
-------------

[](#documentation)

This library is currently based on **v1.52** of the Saferpay JSON API.

Find the most current documentation of the Saferpay JSON API here:

Contribution
------------

[](#contribution)

You are [welcome to contribute](/.github/contributing.md) to this repo.

###  Health Score

70

—

ExcellentBetter than 100% of packages

Maintenance97

Actively maintained with recent releases

Popularity48

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity91

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 80.6% 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 ~86 days

Recently: every ~1 days

Total

45

Last Release

15d ago

Major Versions

v5.1 → v6.02024-07-24

v6.4 → v7.02026-06-15

v7.0 → v8.02026-06-18

v8.0 → v9.02026-06-18

v9.0 → v10.02026-06-19

PHP version history (11 changes)0.2PHP &gt;=5.6

2.0PHP ^7.3.0

2.3PHP &gt;=7.3

v3.1PHP ^7.3

v3.3PHP ^7.3|^8.0

v4.2PHP ^7.4|^8.0.0|^8.1.0

v4.3PHP ^7.4|^8.0.0|^8.1.0|^8.2.0

v4.5PHP ~7.4|~8.0.0|~8.1.0|~8.2.0|~8.3.0

v6.2PHP ~7.4|~8.0.0|~8.1.0|~8.2.0|~8.3.0|~8.4.0

v6.4PHP ~7.4|~8.0.0|~8.1.0|~8.2.0|~8.3.0|~8.4.0|~8.5.0

v10.0PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1736670?v=4)[Ticketpark GmbH](/maintainers/ticketpark)[@Ticketpark](https://github.com/Ticketpark)

---

Top Contributors

[![sprain](https://avatars.githubusercontent.com/u/260361?v=4)](https://github.com/sprain "sprain (304 commits)")[![giriroub](https://avatars.githubusercontent.com/u/47786813?v=4)](https://github.com/giriroub "giriroub (22 commits)")[![codesource](https://avatars.githubusercontent.com/u/1862276?v=4)](https://github.com/codesource "codesource (14 commits)")[![DF-Dave](https://avatars.githubusercontent.com/u/59051498?v=4)](https://github.com/DF-Dave "DF-Dave (8 commits)")[![thomasmeike](https://avatars.githubusercontent.com/u/7045954?v=4)](https://github.com/thomasmeike "thomasmeike (8 commits)")[![fabianerni](https://avatars.githubusercontent.com/u/1094578?v=4)](https://github.com/fabianerni "fabianerni (5 commits)")[![Yavis](https://avatars.githubusercontent.com/u/5630778?v=4)](https://github.com/Yavis "Yavis (4 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (4 commits)")[![maldoinc](https://avatars.githubusercontent.com/u/1253062?v=4)](https://github.com/maldoinc "maldoinc (2 commits)")[![qestoppey](https://avatars.githubusercontent.com/u/65346438?v=4)](https://github.com/qestoppey "qestoppey (1 commits)")[![laravel-vesuvius](https://avatars.githubusercontent.com/u/20557405?v=4)](https://github.com/laravel-vesuvius "laravel-vesuvius (1 commits)")[![apiaget](https://avatars.githubusercontent.com/u/634083?v=4)](https://github.com/apiaget "apiaget (1 commits)")[![dominikzogg](https://avatars.githubusercontent.com/u/1011217?v=4)](https://github.com/dominikzogg "dominikzogg (1 commits)")[![geekdevs](https://avatars.githubusercontent.com/u/864822?v=4)](https://github.com/geekdevs "geekdevs (1 commits)")[![drjozo](https://avatars.githubusercontent.com/u/15730864?v=4)](https://github.com/drjozo "drjozo (1 commits)")

---

Tags

php-librarysaferpay-apisaferpay

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ticketpark-saferpay-json-api/health.svg)

```
[![Health](https://phpackages.com/badges/ticketpark-saferpay-json-api/health.svg)](https://phpackages.com/packages/ticketpark-saferpay-json-api)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)

PHPackages © 2026

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