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

ActiveLibrary[API Development](/categories/api)

tapfiliate/sdk-php
==================

Client for tapfiliate.com

0.1.0(3y ago)04.7k↓34.4%2MITPHP

Since Dec 14Pushed 3y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (2)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 tapfiliate/sdk-php

```

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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1251d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/08dc9a1ad27594570611a0dedc1b8ae8f28772d9e1f3a811de931f021f224eda?d=identicon)[admitad-dev](/maintainers/admitad-dev)

---

Top Contributors

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

---

Tags

phpsdktapfiliate

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  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)
