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

ActiveLibrary[API Development](/categories/api)

cardflow/cardflow-php
=====================

PHP library for interacting with the Cardflow API.

v1.0.2(3y ago)09MITPHPPHP ~7.4.0||~8.0.0||~8.1.0||~8.2.0

Since Mar 31Pushed 3y ago1 watchersCompare

[ Source](https://github.com/cardflow/cardflow-php)[ Packagist](https://packagist.org/packages/cardflow/cardflow-php)[ Docs](https://cardflow.nl)[ RSS](/packages/cardflow-cardflow-php/feed)WikiDiscussions main Synced yesterday

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

Cardflow PHP SDK
================

[](#cardflow-php-sdk)

[![Latest Stable Version](https://camo.githubusercontent.com/c4d9ec5a21fd7d855565829fef82e80e4e78e518a19c6180350372840f2b65f6/68747470733a2f2f706f7365722e707567782e6f72672f63617264666c6f772f63617264666c6f772d7068702f76)](//packagist.org/packages/cardflow/cardflow-php)[![CI](https://github.com/cardflow/cardflow-php/workflows/CI/badge.svg?branch=master)](https://github.com/cardflow/cardflow-php/workflows/CI/badge.svg?branch=master)[![License](https://camo.githubusercontent.com/0f64e745be751f1ac5985f15d1702fd936fefe6a0b3aec6f4d3845437bbe78c5/68747470733a2f2f706f7365722e707567782e6f72672f63617264666c6f772f63617264666c6f772d7068702f6c6963656e7365)](//packagist.org/packages/cardflow/cardflow-php)

PHP library for interacting with the Cardflow API. This SDK is using the public [Cardflow API](https://docs.cardflow.nl/api) and enables you to:

- Accept gift cards in your webshop
- Redeem and issue gift cards in your POS-system

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

[](#requirements)

- PHP 7.4.0 and later
- A valid API Key, that can be [generated](https://dashboard.cardflow.nl) in your Cardflow dashboard

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

[](#installation)

The SDK is published on Packagist and can be installed using Composer.

`composer require cardflow/cardflow-php`

Getting Started
---------------

[](#getting-started)

Before starting, it is recommended to read the documentation of the underlying [Cardflow API](https://docs.cardflow.nl/api) where all possible options to include are described.

Initializing the client and performing an API call is done as follows.

```
$cardflow = new \Cardflow\Client\CardflowClient('eyJ0eXAi....');
$giftCard = $cardflow->giftCards->get('ABCDABCDABCDABCD');
```

### Retrieve a Gift Card

[](#retrieve-a-gift-card)

```
$giftCard = $cardflow->giftCards->get('ABCDABCDABCDABCD');
```

### Redeem a Gift Card

[](#redeem-a-gift-card)

```
$transaction = $cardflow->giftCards->redeem(
  'ABCDABCDABCDABCD',
  [
    "amount" => 1250,
    "currency" => "EUR",
    "capture" => false
  ]
);
```

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

[](#development)

Clone the Git repository, so you have a local working copy.

`git clone https://github.com/cardflow/cardflow-php`

Install required (developing) dependencies using Composer.

`composer install`

Make sure you follow the PSR12 coding standards.

`composer phpstan` &amp; `composer phpcs`

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

1143d ago

### Community

Maintainers

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

---

Top Contributors

[![cardflow](https://avatars.githubusercontent.com/u/129510879?v=4)](https://github.com/cardflow "cardflow (5 commits)")

---

Tags

apicardflow

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k28.0M318](/packages/openai-php-client)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.1M159](/packages/algolia-algoliasearch-client-php)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

60216.0M84](/packages/mollie-mollie-api-php)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.7k409.0k6](/packages/theodo-group-llphant)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

1003.9M50](/packages/getbrevo-brevo-php)

PHPackages © 2026

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