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

ActiveLibrary[API Development](/categories/api)

gigabit/affilinet-php-sdk
=========================

affilinet PHP SDK, forked and extended from https://github.com/affilinet/productdata-php-sdk

v1.0.0(9y ago)0493MITPHPPHP ^5.6|^7.0

Since Nov 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/gigabit-gmbh/affilinet-php-sdk)[ Packagist](https://packagist.org/packages/gigabit/affilinet-php-sdk)[ Docs](https://github.com/affilinet/productdata-php-sdk)[ RSS](/packages/gigabit-affilinet-php-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (5)Used By (0)

affilinet PHP SDK
=================

[](#affilinet-php-sdk)

Grab the **PHP SDK** and have access to our webservice within minutes.

This is a fork from [Official affilinet Product SDK](https://github.com/affilinet/productdata-php-sdk). It doesn´t had any possiblities to access to other webservice endpoints.

//TODO: extend original documentation Refer to our documentation in order to get started:

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

[](#installation)

This SDK can be installed with composer

```
composer require gigabit/affilinet-php-sdk
```

> **Please note:** This packages requires PHP 5.6 or greater.

Examples
--------

[](#examples)

```
$config = [
    'publisher_id' => {PUBLISHER ID},
    'product_webservice_password' => {PRODUCT WEBSERVICE PASSWORD}
]

$affilinet = new \Affilinet\ProductData\AffilinetClient($config);

// simple search for t-shirts (using the product webservice)
try {
    $search = new \Affilinet\ProductData\Requests\ProductsRequest($affilinet);
    $query = new \Affilinet\ProductData\Requests\Helper\Query();

    $query->where($query->expr()->exactly('T-Shirt'));

    $search
        ->query( $query)
        ->onlyWithImage()
        ->minPrice(1)
        ->maxPrice(100)
        ->page(1)
        ->pageSize(20);

    $response = $search->send();
}
catch (\Affilinet\ProductData\Exceptions\AffilinetProductWebserviceException $e) {
    // There is an error within your $search
    echo 'Error: ' . $e->getMessage();
}

echo 'Total results : ' . $response->totalRecords() ;

foreach ($response->getProducts() as $product) {
    echo $product->getProductName();
    echo $product->getPriceInformation()->getDisplayPrice();
}
```

Tests
-----

[](#tests)

All tests rely on composer. Please `composer install` before running the tests. phpunit tests include some integration tests. To run these tests you need to provide an publisherId and productWebservicePassword. Copy `Tests/AffilinetTestCredentials.php.dist` to `Tests/AffilinetTestCredentials.php` and enter your PUBLISHER\_ID and PRODUCT\_WEBSERVICE\_PASSWORD

To run only the unit tests use this command:

```
phpunit --exclude-group integration
```

License
-------

[](#license)

Please see the [license file](https://github.com/affilinet/php-sdk/blob/master/LICENSE) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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

3470d ago

### Community

Maintainers

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

---

Top Contributors

[![develth](https://avatars.githubusercontent.com/u/3374563?v=4)](https://github.com/develth "develth (21 commits)")[![aoderinde](https://avatars.githubusercontent.com/u/4103814?v=4)](https://github.com/aoderinde "aoderinde (7 commits)")

---

Tags

sdkaffilinet

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M467](/packages/saloonphp-saloon)[openai-php/laravel

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

3.7k7.6M74](/packages/openai-php-laravel)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)[yoti/yoti-php-sdk

Yoti SDK for quickly integrating your PHP backend with Yoti

27539.9k1](/packages/yoti-yoti-php-sdk)[huaweicloud/huaweicloud-sdk-php

Huawei Cloud SDK for PHP

1829.2k2](/packages/huaweicloud-huaweicloud-sdk-php)

PHPackages © 2026

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