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

ActiveLibrary[API Development](/categories/api)

dfcplc/dfcapi-php
=================

DFC API - PHP

1.0.2(10y ago)0104MITPHPPHP &gt;=5.4.0

Since Aug 21Pushed 10y ago4 watchersCompare

[ Source](https://github.com/dfcplc/dfcapi-php)[ Packagist](https://packagist.org/packages/dfcplc/dfcapi-php)[ Docs](https://github.com/dfcplc/dfcapi-php)[ RSS](/packages/dfcplc-dfcapi-php/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (4)Used By (0)

DFCAPI for PHP [![Build Status](https://camo.githubusercontent.com/833fe6265fa52b00e1e4c2c0bc12a8e71d9fc3967ea2ea41b505d8dd6c1b126b/68747470733a2f2f6170692e7472617669732d63692e6f72672f646663706c632f6466636170692d7068702e706e67)](https://travis-ci.org/dfcplc/dfcapi-php)
=============================================================================================================================================================================================================================================================================

[](#dfcapi-for-php-)

The DFC API is a Restful API which has been built to facilitate the ability to Setup/Ammend/Cancel &amp; View Direct Debits with Debit Finance Collections Plc

### Install with Composer

[](#install-with-composer)

If you're using [Composer](https://github.com/composer/composer) to manage dependencies, you can the DFC API Client Library with it.

```
{
  "require" : {
    "dfcplc/dfcapi-php" : "dev-master"
  },
  "autoload": {
    "psr-0": {"Dfcapi": "lib/"}
  }
}
```

### Install source from GitHub

[](#install-source-from-github)

The DFCAPI-PHP Client Library requires PHP `v5.3+`. Download the PHP library from Github, and require in your script like so:

To install the source code:

```
$ git clone git@github.com:dfcplc/dfcapi-php.git
```

And include it in your scripts:

```
require_once '/path/to/dfcapi-php/lib/Dfcapi.php';
```

Checking API Credentials
------------------------

[](#checking-api-credentials)

So you're probably wondering how using Unirest makes creating requests in PHP easier, let's look at a working example:

```
$dfcapi = new Dfcapi();
$response = $dfcapi->CheckApiKey('TEST-TEST-TEST-TEST','a94a8fe5ccb19ba61c4c0873d391e987982fbbd3');

var_dump($response); // API Credential Check Response (true or false)
```

### Extra Details

[](#extra-details)

When calling the API, additional details can be retrieved using the below methods:

```
$dfcapi = new Dfcapi();

$dfcapi->getErrors(); //Array of returned errors from the API Call

$dfcapi->getResponseCode(); //HTTP Response Code (200 = OK)

$dfcapi->getResponseBody(); //HTTP Response Body (Object)

$dfcapi->getResponseBodyRaw(); //HTTP Response Body (Raw)

$dfcapi->getResponseHeaders(); //HTTP Response Headers (Array)
```

---

\### Thanks Thanks go out to: \* \[thefosk\]() @ \[mashape.com\]() - Unirest Restful Library

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 86.7% 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 ~98 days

Total

3

Last Release

3723d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/122079a94e271d1a6a198bd9863c72b1afaf950f0878af2bf7bafb1d2c77398e?d=identicon)[mattclements](/maintainers/mattclements)

![](https://www.gravatar.com/avatar/62ba59947dc828bdc3daf463bea473ea89563b01677de33c7ed097e27c432784?d=identicon)[dfcplc](/maintainers/dfcplc)

---

Top Contributors

[![mattclements](https://avatars.githubusercontent.com/u/804802?v=4)](https://github.com/mattclements "mattclements (13 commits)")[![NorcalAussie](https://avatars.githubusercontent.com/u/1586324?v=4)](https://github.com/NorcalAussie "NorcalAussie (2 commits)")

---

Tags

apidirect debitdddfc

### Embed Badge

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

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

###  Alternatives

[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.

59914.4M62](/packages/mollie-mollie-api-php)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[gocardless/gocardless-pro

GoCardless PHP Client Library

1034.4M20](/packages/gocardless-gocardless-pro)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[bandwidth/sdk

Bandwidth's set of APIs

16948.8k1](/packages/bandwidth-sdk)[mollie/magento

iDEAL, Creditcard, Bancontact/Mister Cash, SOFORT, Bank transfer, Bitcoin, PayPal &amp; paysafecard for Magento https://www.mollie.com/

397.9k](/packages/mollie-magento)

PHPackages © 2026

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