Skip to content


Repository files navigation

CloudApps PHP SDK

The PHP SDK is a library with useful features that enable App developers to easily integrate their application with and make requests to our CloudApps API. This PHP SDK makes it easy to set up the integration between your App and the Print Cloud to request instant pricing, post print orders, get production signals back, and more.

The CloudApps API is exclusively designed for app and platform developers and offers support for multiple users.

We at have connected 150+ printers to print & ship print products in almost any country in the world. Whether this is around the corner or at the other side of the globe, we've got you covered: we can deliver 500+ different products in more than 100 countries currently.

Our platform makes use of smart routing algoritms to route any print job to the most local and qualified printer. Based on location, performance, price and production options, your print job is routed by these algorithms to the nearest printing facility near your delivery address to help you save on transit times and costs.

Visit our website for more information on all the products and services that we offer.

Full documentation

Follow the link to read the full documentation.


The CloudApps SDK can be installed with Composer. Run this command:

composer require cloudprinter/cloudapps


  • composer (for installation)
  • php 7.0 or above
  • json, fileinfo, curl extensions must be enabled
  • Print Cloud account

Creating an app

The CloudApps API is designed as backend for integrated apps. An app could as an example an e-commerce system integration.

Each app needs to be created in the system. Please contact support team for this.


Authentication is done via OAuth2.

Each app requires a unique client identifier, client password and a return URL. This information is required for support team when creating the app.

The user login grants access to the CloudApps API.


Get access token.

use CloudPrinter\CloudApps\Authentication\OAuth2;

$config = [
    'client_id' => '***',
    'client_secret' => '***',
    'redirect_uri' => '',
    'scope' => 'read-write'
$oAuth2 = new OAuth2($config);

// Step 1. Getting url for authorization code.
$authorizationCodeUrl = $oAuth2->getAuthorizationCodeUrl();

// Step 2. Getting access token by authorization code that comes to redirect url.
$code = $_GET['code'];
$accessToken = $oAuth2->getAccessToken($code);

Get list of orders.

use CloudPrinter\CloudApps\Client\CloudAppsClient;

$accessToken = '***';
$client = new CloudAppsClient($accessToken);
$response = $client->order->getList();


Create new order.

use CloudPrinter\CloudCore\Client\CloudCoreClient;
use CloudPrinter\CloudCore\Exception\ValidationException;
use CloudPrinter\CloudCore\Model\{Address, File, OrderItem, Order, Option};

$accessToken = '***';
$client = new CloudAppsClient($accessToken);

$address = new Address();
    ->setZip('1071 JA')

$fileCover = new File();

$fileBook = new File();

$item = new OrderItem();
    ->addOption(new Option('cover_finish_gloss', 1))
    ->addOption(new Option('pageblock_80off', 1))
    ->addOption(new Option('cover_130mcg', 1))
    ->addOption(new Option('total_pages', 100));

$order = new Order();
    ->setReference('sdk-' . time())

try {
    $response = $client->order->create($order);
} catch (ValidationException $e) {

Read more information

Follow the link to read the full documentation.