PHPackages                             affilinet/productdata-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. affilinet/productdata-php-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

affilinet/productdata-php-sdk
=============================

affilinet Product Data PHP SDK

v1.0.2(8y ago)33.3k2[2 issues](https://github.com/affilinet/productdata-php-sdk/issues)[1 PRs](https://github.com/affilinet/productdata-php-sdk/pulls)MITPHPPHP ^5.6|^7.0

Since Nov 8Pushed 8y ago6 watchersCompare

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

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

affilinet Product Data PHP SDK
==============================

[](#affilinet-product-data-php-sdk)

Grab our **Product Data PHP SDK** and have access to millions of products within minutes.

Refer to our documentation in order to get started:

[![SensioLabsInsight](https://camo.githubusercontent.com/57bc2c8936fe72d82d87d798565bd49bdc69a1fc14a9e46b57fe1367614dfc48/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38326365333666652d303364652d346665622d616538362d6164356130316164623337312f6269672e706e673f763d31)](https://insight.sensiolabs.com/projects/82ce36fe-03de-4feb-ae86-ad5a01adb371)

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

[](#installation)

This SDK can be installed with composer

```
composer require affilinet/productdata-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/productdata-php-sdk/blob/master/LICENSE) for more information.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~137 days

Total

3

Last Release

3246d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11960023?v=4)[affilinet](/maintainers/affilinet)[@affilinet](https://github.com/affilinet)

---

Top Contributors

[![aoderinde](https://avatars.githubusercontent.com/u/4103814?v=4)](https://github.com/aoderinde "aoderinde (7 commits)")[![avaffilinet](https://avatars.githubusercontent.com/u/3481571?v=4)](https://github.com/avaffilinet "avaffilinet (1 commits)")

---

Tags

affiliateaffiliatesaffilinetcomposerphp-sdkproductdataproductfeedpublisherrest-apisoapwebservicewebservicessdkaffilinet

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

344128.8M102](/packages/google-cloud-core)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M528](/packages/shopware-core)

PHPackages © 2026

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