Skip to content

Marketcloud/marketcloud-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marketcloud-php

Marketcloud API official PHP client library

Installation with Composer

composer require marketcloud/marketcloud-php
composer install

Then you can use the Composer's autoload

require_once('vendor/autoload.php');

Manual installation

You can download the latest release from GitHub and then include the init.php file

require_once('/path/to/marketcloud-php/init.php');

Documentation

The official documentation can be found at http://www.marketcloud.it/documentation

API overview

You can interact with the api through a Marketcloud

Marketcloud\Marketcloud::setCredentials(array(
  'secret_key' => 'your-secret-key',
  'public_key' => 'your-public-key'
));

Every resource method, returns json data:

$response = Marketcloud\Products::get();

echo json_encode( (array)$response->body )