PHPackages                             jarnovanleeuwen/php-tikkie - 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. jarnovanleeuwen/php-tikkie

AbandonedArchivedLibrary[API Development](/categories/api)

jarnovanleeuwen/php-tikkie
==========================

Implementation of the Tikkie API interface.

v0.2.4(6y ago)2313.6k↓50%6MITPHPPHP &gt;=7.1.0

Since Dec 12Pushed 5y ago4 watchersCompare

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

READMEChangelog (8)Dependencies (3)Versions (9)Used By (0)

[![](https://user-images.githubusercontent.com/1358997/33891467-4e1a15ea-df56-11e7-98a0-ecc3e1ec07f0.png)](https://user-images.githubusercontent.com/1358997/33891467-4e1a15ea-df56-11e7-98a0-ecc3e1ec07f0.png)
===============================================================================================================================================================================================================

[](#)

[![Build Status](https://camo.githubusercontent.com/2a08cc58c5818165fbc666011b7740ad51af27e9fdeea201111e1d399c534fc1/68747470733a2f2f7472617669732d63692e636f6d2f6a61726e6f76616e6c65657577656e2f7068702d74696b6b69652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/jarnovanleeuwen/php-tikkie)

⚠️ Tikkie has announced that on **01-01-2021** it will stop supporting the Tikkie Payment Request API (the API that this library implements) in favor of the new Tikkie API. See  for more information, including a roadmap.

Currently, I am not planning to update this library. This might change in the future, but meanwhile PRs are welcome.

---

#### Easily create payment requests through [Tikkie](https://tikkie.me/).

[](#easily-create-payment-requests-through-tikkie)

Unofficial PHP implementation of the [Tikkie Payment Request API](https://developer.abnamro.com/content/tikkie-payment-request) (deprecated, available until 01-01-2021).

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

[](#installation)

*PHPTikkie requires PHP 7.1+*

Add this package to your project using [Composer](https://getcomposer.org/):

`composer require jarnovanleeuwen/php-tikkie`

Usage
=====

[](#usage)

### Initialise PHPTikkie

[](#initialise-phptikkie)

```
use PHPTikkie\Environment;
use PHPTikkie\PHPTikkie;

$apiKey = "abc123";
$testMode = true;

$environment = new Environment($apiKey, $testMode);
$environment->loadPrivateKey('private_rsa.pem');

$tikkie = new PHPTikkie($environment);
```

### Create platform

[](#create-platform)

```
use PHPTikkie\Entities\Platform;

$platform = $tikkie->newPlatform([
    // Mandatory attributes
    'name' => 'YourPlatform',
    'phoneNumber' => '06123456789',
    'platformUsage' => Platform::USAGE_TYPE_MYSELF,

    // Optional attributes
    'email' => 'tikkie@yourcompany.com',
    'notificationUrl' => ''
])->save();

$platformToken = $platform->platformToken;
```

### Create user

[](#create-user)

```
$user = $tikkie->newUser($platformToken, [
    'name' => 'ExamplePlatform',
    'phoneNumber' => '06123456789',
    'iban' => 'NL00BANK123456789',
    'bankAccountLabel' => 'YourLabel'
])->save();

$userToken = $user->userToken;
$bankAccountToken = $user->bankAccounts[0]->bankAccountToken;
```

### Create payment request

[](#create-payment-request)

```
$paymentRequest = $tikkie->newPaymentRequest($platformToken, $userToken, $bankAccountToken, [
    // Mandatory attributes
    'amountInCents' => '1250',
    'currency' => 'EUR',
    'description' => 'Thank you',
    'externalId' => 'Order 1234'
])->save();

$tikkieUrl = $paymentRequest->paymentRequestUrl;
$paymentRequestToken = $paymentRequest->paymentRequestToken;
```

### Get payment request

[](#get-payment-request)

```
function paymentRequest(string $platformToken, string $userToken, string $paymentRequestToken): PaymentRequest
```

### List platforms

[](#list-platforms)

```
function platforms(): Platform[]
```

### List users

[](#list-users)

```
function users(string $platformToken): User[]
```

### List payment requests

[](#list-payment-requests)

```
function paymentRequests(string $platformToken, string $userToken, int $offset, int $limit, DateTimeInterface $fromDate = null, DateTimeInterface $toDate = null): PaymentRequest[]
```

### Process payments

[](#process-payments)

```
$paymentRequest = $tikkie->paymentRequest($platformToken, $userToken, $paymentRequestToken);

foreach ($paymentRequest->payments as $payment) {
    if ($payment->isPaid()) {
        // Payment successful
    }
}
```

### Exception handling

[](#exception-handling)

All methods may return a `PHPTikkieException` containing an error code and description.

```
use PHPTikkie\Exceptions\PHPTikkieException;

try {
    var_dump($tikkie->platforms());
} catch (PHPTikkieException $exception) {
    print $exception->getMessage(); // [ERR_2005_002] The API Key is invalid for the requested resource | traceId: 6fda2ce8-225d-4ca2-920a-b687c7aeb2f3 | (see https://developer.abnamro.com/get-started#obtaining-an-api-key)
}
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.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 ~100 days

Recently: every ~128 days

Total

8

Last Release

2368d ago

PHP version history (2 changes)v0.1PHP &gt;=7.0.0

v0.2.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/32504d5db68ddfca1b6c6b9d15e629a68a596307bf1badeb86f4b75ab21992ed?d=identicon)[jarnovanleeuwen](/maintainers/jarnovanleeuwen)

---

Top Contributors

[![jarnovanleeuwen](https://avatars.githubusercontent.com/u/1358997?v=4)](https://github.com/jarnovanleeuwen "jarnovanleeuwen (40 commits)")[![JochemKlingeler](https://avatars.githubusercontent.com/u/8612360?v=4)](https://github.com/JochemKlingeler "JochemKlingeler (3 commits)")[![remkobrenters](https://avatars.githubusercontent.com/u/4686406?v=4)](https://github.com/remkobrenters "remkobrenters (1 commits)")

---

Tags

apipaymentpaytikkieabnamro

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jarnovanleeuwen-php-tikkie/health.svg)

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

###  Alternatives

[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)[postfinancecheckout/sdk

PostFinance Checkout SDK for PHP

22219.1k14](/packages/postfinancecheckout-sdk)[wallee/sdk

wallee SDK for PHP

12354.2k11](/packages/wallee-sdk)

PHPackages © 2026

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