PHPackages                             catalin-ionut/profitshare-client - 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. catalin-ionut/profitshare-client

ActiveLibrary[API Development](/categories/api)

catalin-ionut/profitshare-client
================================

Profitshare modern client to consume the profitshare API.

v1.0.0(4y ago)21863[1 PRs](https://github.com/Catalin-Ionut/profitshare-client/pulls)MITPHPPHP &gt;=7.4

Since Dec 1Pushed 1y agoCompare

[ Source](https://github.com/Catalin-Ionut/profitshare-client)[ Packagist](https://packagist.org/packages/catalin-ionut/profitshare-client)[ Docs](https://github.com/Catalin-Ionut/profitshare-client)[ RSS](/packages/catalin-ionut-profitshare-client/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

#### The perfect starting point to integrate [Profitshare]() functionality within your PHP project.

[](#the-perfect-starting-point-to-integrate-profitshare-functionality-within-your-php-project)

 [![Total Downloads](https://camo.githubusercontent.com/3e3744f3a68e861945d65a9a2a704228f756bfad51319d129a26de9aaf482fab/68747470733a2f2f706f7365722e707567782e6f72672f636174616c696e2d696f6e75742f70726f66697473686172652d636c69656e742f642f746f74616c2e737667)](https://packagist.org/packages/catalin-ionut/profitshare-client) [![License](https://camo.githubusercontent.com/06ca3e1282e6da06b1d75a3da18f3d79ddfd48e337a8873c9bb92740d9ccc2c3/68747470733a2f2f706f7365722e707567782e6f72672f636174616c696e2d696f6e75742f70726f66697473686172652d636c69656e742f6c6963656e73652e737667)](https://packagist.org/packages/catalin-ionut/profitshare-client) [![PHPStan Enabled](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://phpstan.org/)

✨ Features
----------

[](#-features)

- Thin &amp; minimal API client to interact with Profitshare's API
- Supports non blocking requests by default
- Full async methods implemented
- Easily configurable

💡 Getting Started
-----------------

[](#-getting-started)

First, install Profitshare PHP API Client via the [composer](https://getcomposer.org/) package manager:

```
composer require catalin-ionut/profitshare-client
```

This package uses [json-mapper](https://packagist.org/packages/netresearch/jsonmapper) to map the response to models for type validation and autocomplition.

Then, create the client:

```
$client = $client = new ProfitshareClient\Profitshare(
    API_USER,
    API_KEY
);
```

Advertisers
-----------

[](#advertisers)

```
$advertisers = $client->getAdvertisers();
```

Campaigns
---------

[](#campaigns)

```
$campaigns = $client->getCampaign($page = 1);

/* full async non blocking */
$callback = function (array $campaigns) {
    var_dump($campaigns);
};
$client->loopAllCampaigns($callback);
```

Products
--------

[](#products)

```
$products = $client->getProducts($advertiserID = 113725);

/* full async non blocking */
$callback = function (array $products) {
    var_dump($products);
};
$client->loopAllProducts($advertiserID = 113725, $callback);
```

Commissions
-----------

[](#commissions)

```
$filters = [
    'status' => 'approved',
    'date_from' => '2020-06-01',
    'date_to' => '2020-06-23',
];
$commissions = $client->getCommissions($filters);
```

For full documentation, visit the **[Profitshare API](https://app.profitshare.ro/files/pdf/api_affiliate.pdf)**.

📄 License
---------

[](#-license)

Profitshare PHP API Client is an open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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

1624d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/52a17a72f6e09f62fd67f43316fa31abbb1dbbb5232a4871be661afb6af793f7?d=identicon)[Catalin-Ionut](/maintainers/Catalin-Ionut)

---

Top Contributors

[![Catalin-Ionut](https://avatars.githubusercontent.com/u/9265473?v=4)](https://github.com/Catalin-Ionut "Catalin-Ionut (2 commits)")

---

Tags

apiprofitshare

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/catalin-ionut-profitshare-client/health.svg)

```
[![Health](https://phpackages.com/badges/catalin-ionut-profitshare-client/health.svg)](https://phpackages.com/packages/catalin-ionut-profitshare-client)
```

###  Alternatives

[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[pouler/apple-music-api

PHP Wrapper for the Apple Music API

44100.5k](/packages/pouler-apple-music-api)[smnandre/pagespeed-api

PageSpeed Insight PHP Api Client 🚀 Analyse web pages for performances metrics, core web vitals...

1511.5k](/packages/smnandre-pagespeed-api)

PHPackages © 2026

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