PHPackages                             autumndev/cdiscount-sdkphpapi - 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. autumndev/cdiscount-sdkphpapi

ActiveLibrary

autumndev/cdiscount-sdkphpapi
=============================

PHP SDK for the Cdiscount Marketplace API

1.1.9(6y ago)01.8k2GPL-3.0PHP

Since Jan 9Pushed 6y agoCompare

[ Source](https://github.com/scott-davidjones/API-MarketPlace-SDK-PHP)[ Packagist](https://packagist.org/packages/autumndev/cdiscount-sdkphpapi)[ RSS](/packages/autumndev-cdiscount-sdkphpapi/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (6)Versions (20)Used By (0)

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

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

This project is an update to the [Cdiscount/API-MarketPlace-SDK-PHP](https://github.com/Cdiscount/API-MarketPlace-SDK-PHP) parent.

Main Changes include the ability to pass in the username, password, token url and cURL options into the API functionality without the need to modify the supplied `config.ini` file.

The reasons for these changes are to better support frameworks like Laravel and to disuade users from directly editing files in the `vendor` directory.

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

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 60.8% 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 ~54 days

Recently: every ~160 days

Total

19

Last Release

2424d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2fdae8757045573e236136afb10fc9cdfef8aade0c6c04e0a49a07aca6347164?d=identicon)[autumndev](/maintainers/autumndev)

---

Top Contributors

[![guillaumecochard](https://avatars.githubusercontent.com/u/7467023?v=4)](https://github.com/guillaumecochard "guillaumecochard (31 commits)")[![guillaumecds16](https://avatars.githubusercontent.com/u/24295149?v=4)](https://github.com/guillaumecds16 "guillaumecds16 (9 commits)")[![scott-davidjones](https://avatars.githubusercontent.com/u/547193?v=4)](https://github.com/scott-davidjones "scott-davidjones (6 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)")

### Embed Badge

![Health badge](/badges/autumndev-cdiscount-sdkphpapi/health.svg)

```
[![Health](https://phpackages.com/badges/autumndev-cdiscount-sdkphpapi/health.svg)](https://phpackages.com/packages/autumndev-cdiscount-sdkphpapi)
```

###  Alternatives

[zf-commons/zfc-user

A generic user registration and authentication module for ZF2. Supports Zend\\Db and Doctrine2.

4851.1M70](/packages/zf-commons-zfc-user)[socalnick/scn-social-auth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

21974.2k3](/packages/socalnick-scn-social-auth)[cdiscount/sdkphpapi

PHP SDK for the Cdiscount Marketplace API

153.3k](/packages/cdiscount-sdkphpapi)[davidhavl/dherrorlogging

Full featured error logging module for ZF2/ZF3 application

1924.5k](/packages/davidhavl-dherrorlogging)

PHPackages © 2026

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