PHPackages                             1ff/tapfiliate-php-sdk - 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. 1ff/tapfiliate-php-sdk

ActiveLibrary[API Development](/categories/api)

1ff/tapfiliate-php-sdk
======================

Client for tapfiliate.com

v2.0.1(9mo ago)1753MITPHP

Since Jul 18Pushed 9mo agoCompare

[ Source](https://github.com/1FF/tapfiliate-php-sdk)[ Packagist](https://packagist.org/packages/1ff/tapfiliate-php-sdk)[ RSS](/packages/1ff-tapfiliate-php-sdk/feed)WikiDiscussions main Synced 1mo ago

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

Tapfiliate PHP SDK
==================

[](#tapfiliate-php-sdk)

A PHP wrapper around the Tapfiliate API

Install
-------

[](#install)

Install  and run the following command:

```
php composer.phar require 1ff/tapfiliate-php-sdk

```

PHP SDK Configuration
---------------------

[](#php-sdk-configuration)

To use SDK you need:
--------------------

[](#to-use-sdk-you-need)

- Configure an ApiClient
- Configure handler which will perform an action

### How to configure an ApiClient?

[](#how-to-configure-an-apiclient)

You just need to fill in the required arguments

```
$logger = new NullLogger();
$helper = new ModelFiller();
$api = new ApiClient($logger, '');
```

#### How to get an API key?

[](#how-to-get-an-api-key-)

- Go to Tapfiliate platform.
- Login to your publisher account.
- Click on your account image.
- Then choose `Profile settings > API key`
- And copy the value from `API key` text field

### How to get a Tapfiliate host?

[](#how-to-get-a-tapfiliate-host-)

By default, it's set to:
But you can modify host by adding your own data to `ApiClient` constructor

#### How to configure a handler?

[](#how-to-configure-a-handler)

Example of ClicksHandler configuration:

```
$clickHandler = new ClicksHandler($api, $helper);
```

Example of click creation:

```
$clicks = new Click();
// You can set specific data to Click model (e.g referral code)
$clicks->setReferralCode('');
$clickHandler->createClick($clicks);
```

After executing `createClick` action it will return a Clicks object filled with API response.
Example of response:

```
object(Tapfiliate\Models\Click) {
    ["id":"Tapfiliate\Models\Click":private]=> string(36) ""
    ["referralCode":"Tapfiliate\Models\Click":private]=> string(6) ""
    ["sourceId":"Tapfiliate\Models\Click":private]=> NULL
    ["referrer":"Tapfiliate\Models\Click":private]=> NULL
    ["landingPage":"Tapfiliate\Models\Click":private]=> NULL
    ["userAgent":"Tapfiliate\Models\Click":private]=> NULL
    ["ip":"Tapfiliate\Models\Click":private]=> NULL
    ["metaData":"Tapfiliate\Models\Click":private]=> array(0) {
    }
}
```

If something goes wrong `ClicksHandler` will throw an exception.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance57

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~3 days

Total

5

Last Release

285d ago

Major Versions

v1.0.2 → v2.0.02025-07-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/35f534b679e79a43f872d066e060600f317f93fd423e6e017cb3ab7a266cbf94?d=identicon)[vcrazy](/maintainers/vcrazy)

---

Top Contributors

[![4overking](https://avatars.githubusercontent.com/u/8375091?v=4)](https://github.com/4overking "4overking (1 commits)")[![koprinski](https://avatars.githubusercontent.com/u/28507711?v=4)](https://github.com/koprinski "koprinski (1 commits)")

---

Tags

phpsdktapfiliate

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/1ff-tapfiliate-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/1ff-tapfiliate-php-sdk/health.svg)](https://phpackages.com/packages/1ff-tapfiliate-php-sdk)
```

###  Alternatives

[alexacrm/php-crm-toolkit

PHP Toolkit for Microsoft Dynamics CRM

109293.3k1](/packages/alexacrm-php-crm-toolkit)[paddlehq/paddle-php-sdk

Paddle's PHP SDK for Paddle Billing.

53301.7k](/packages/paddlehq-paddle-php-sdk)

PHPackages © 2026

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