Download the PHP package mobi-market/cdiscount-sdkphpapi without Composer

On this page you can find all versions of the php package mobi-market/cdiscount-sdkphpapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cdiscount-sdkphpapi

mobi-market/cdiscount-sdkphpapi

This package has now been updated to use laminas framework (replacement of zend) and a minimum requirement of PHP 7.4 or PHP 8.0 to allow for usage in more modern code.

This package is an update to the 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 dissuade users from directly editing files in the vendor directory.

Installation

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

1.1 - Min requirements :

2- Install the package

Either with composer or by cloning.

2.1a - Add to your project with composer

composer require mobi-market/cdiscount-sdkphpapi

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

The SDK is structured like that :

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

3 - Insert your API credentials

3.1 - 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 :

3.2 - Update the config files

Follow the procedure to insert your API credentials

4 - Use the SDK

4.1 - Use the endpoints

The SDK contains the following endpoints :

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

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 :

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

In the sample, the parameter error_reporting is set to '-1'. Do not let it in production mode.


All versions of cdiscount-sdkphpapi with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0|^8.1
laminas/laminas-config Version ^3.7
laminas/laminas-validator Version ^2.15
laminas/laminas-http Version ^2.15
laminas/laminas-db Version ^2.13
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mobi-market/cdiscount-sdkphpapi contains the following files

Loading the files please wait ....