PHPackages                             tjamps/cdiscount-api-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. tjamps/cdiscount-api-php-sdk

ActiveProject[API Development](/categories/api)

tjamps/cdiscount-api-php-sdk
============================

PHP SDK for the Cdiscount Marketplace API (forked from the official repository)

3.1.0(3y ago)023.9k↓35.7%GPL-3.0-or-laterPHPPHP &gt;=8.1.0

Since Mar 23Pushed 3y agoCompare

[ Source](https://github.com/tjamps/API-MarketPlace-SDK-PHP)[ Packagist](https://packagist.org/packages/tjamps/cdiscount-api-php-sdk)[ RSS](/packages/tjamps-cdiscount-api-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (10)Versions (19)Used By (0)

1- Install a web server (for example wamp for windows)
------------------------------------------------------

[](#1--install-a-web-server-for-example-wamp-for-windows)

### 1.1 - Min requirements :

[](#11---min-requirements-)

- Apache 2.2
- Php 5.6

2.1- Clone the Git repository in your root project folder
---------------------------------------------------------

[](#21--clone-the-git-repository-in-your-root-project-folder)

The SDK is structured like that :

- config/ : config files
- samples/ : samples folder
- sdk/ : content of the Cdiscount SDK (do not modifiy any file of this folder)

2.2- Run the 'composer update' command in the root path of the sdk folder to download Zend Framework dependencies
-----------------------------------------------------------------------------------------------------------------

[](#22--run-the-composer-update-command-in-the-root-path-of-the-sdk-folder-to-download-zend-framework-dependencies)

3 - Insert your API's credentials
---------------------------------

[](#3---insert-your-apis-credentials)

### 3.1 - Requirements

[](#31---requirements)

To use Cdiscount Marketplace API and Cdiscount Marketplace SDK you first need to follow the steps described in the Cdiscount Marketplace API website.

The sections are the following :

- Request your account creation.
- Have set up your account

### 3.2 - Update the config files

[](#32---update-the-config-files)

Follow the procedure to insert your API credentials

- Open the config folder
- Open the config.ini file
- Set the api mode : 'preprod' or 'prod'
- Open the preprod.config.ini file or the prod.config.ini file (if you set mode to 'prod')
- Set your api username
- Set your api password

4 - Use the SDK
---------------

[](#4---use-the-sdk)

### 4.1 - Use the endpoints

[](#41---use-the-endpoints)

The SDK contains the following endpoints :

- Seller
- Offer
- Discussion
- Product
- Order
- Relay

All the SDK methods are described in the MarketPlace API Website because they have the same names of the Cdiscount Marketplace API methods.

For each method, you have a PHP file with a sample to call the corresponding API function.

For example, to call the GetSellerInformation API method, open the GetSellerInformation.php file contained in the Seller folder and follow the same steps of the sample.

### 4.2 - CDSApiClient Object

[](#42---cdsapiclient-object)

The CDSApiClient allows you to call the API.

The CDSApiClient object contains all the endpoints. It's also create an API call to get a token for you.

Don't create a new CDSApiClient each time you call the API !

You can (have to) use the same CDSApiClient for all your API' calls.

Here an example of how use the same CDSApiClient for many API calls :

`$client = new \Sdk\ApiClient\CDSApiClient(); $token = $client->init();  if ($token == null || !$client->isTokenValid()) { echo "Souci lors de la génération du token"; die; } $offerPoint = $client->getOfferPoint(); $offerListResponse = $offerPoint->getOfferList(null); /** Parse here $offerListResponse **/ $sellerPoint = $client->getSellerPoint(); $sellerResponse = $sellerPoint->getSellerInformation(); /** Parse here $sellerResponse **/`

5 - Update the SDK
------------------

[](#5---update-the-sdk)

Download the new SDK Zip file from the CDiscount Marketplace API Website

Erase the SDK folder with the new one

Erase the vendor folder with the new one

Notes
-----

[](#notes)

In the sample, the parametrer error\_reporting is set to '-1'. Do not let it in production mode.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~49 days

Recently: every ~197 days

Total

18

Last Release

1410d ago

Major Versions

2.3.0 → 3.0.02022-07-07

PHP version history (2 changes)2.2.0PHP &gt;=5.4.0

3.0.0PHP &gt;=8.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/783a28ed023a234c38c110507c33ac9da21f8a06f75799542cf9f730bc42e0f2?d=identicon)[tjamps](/maintainers/tjamps)

---

Top Contributors

[![guillaumecochard](https://avatars.githubusercontent.com/u/7467023?v=4)](https://github.com/guillaumecochard "guillaumecochard (31 commits)")[![tjamps](https://avatars.githubusercontent.com/u/2664621?v=4)](https://github.com/tjamps "tjamps (25 commits)")[![guillaumecds16](https://avatars.githubusercontent.com/u/24295149?v=4)](https://github.com/guillaumecds16 "guillaumecds16 (9 commits)")[![ncharlot](https://avatars.githubusercontent.com/u/592778?v=4)](https://github.com/ncharlot "ncharlot (3 commits)")[![dyod](https://avatars.githubusercontent.com/u/6864299?v=4)](https://github.com/dyod "dyod (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisRector

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/tjamps-cdiscount-api-php-sdk/health.svg)

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

###  Alternatives

[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[x-fran/g-trends

Google Trends API for PHP

11955.6k](/packages/x-fran-g-trends)[spejder/odoo-client

A PHP Client for Odoo

1016.8k2](/packages/spejder-odoo-client)

PHPackages © 2026

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