PHPackages                             tradeprint/tradeprint-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. tradeprint/tradeprint-php-sdk

ActiveLibrary[API Development](/categories/api)

tradeprint/tradeprint-php-sdk
=============================

Tradeprint PHP Library

1.0.7(5y ago)2836MITPHPPHP &gt;=5.3.0

Since Jul 30Pushed 5y ago2 watchersCompare

[ Source](https://github.com/Tradeprint/tradeprint-php-sdk)[ Packagist](https://packagist.org/packages/tradeprint/tradeprint-php-sdk)[ Docs](https://www.tradeprint.co.uk/tradeprint-api)[ RSS](/packages/tradeprint-tradeprint-php-sdk/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)DependenciesVersions (7)Used By (0)

Tradeprint PHP SDK
==================

[](#tradeprint-php-sdk)

[![CircleCI](https://camo.githubusercontent.com/dff2caff2ba5e0745bc145a8cab1cb1629429db6a363903b6c53c579b7b10c60/68747470733a2f2f636972636c6563692e636f6d2f67682f54726164657072696e742f74726164657072696e742d7068702d73646b2e7376673f7374796c653d737667)](https://circleci.com/gh/Tradeprint/tradeprint-php-sdk)

Introduction
------------

[](#introduction)

Tradeprint PHP SDK allows you to easily add your print on demand functionality to your app or website within minutes! Print Postcards, Business Cards, Posters, Stickers on a roll, T-Shirts, etc. Our Tradeprint PHP SDK industry standardised documentation and instructions are easy to follow and would take a software engineer no longer than a few days to complete the full integration.

Our Sandbox print API environment allows you to interact with the API endpoints through the Tradeprint PHP SDK.

As the API is created by our in-house team, we provide support to ensure it is set up and running smoothly. Once up and running, we don’t anticipate a need for further maintenance from our side. However, we do expect some work to maintain your product catalogue. This work includes adding, removing and editing products and can completed manually by your team, or parts can be automated.

Requirements
------------

[](#requirements)

PHP &gt;= 5.60

You will also require credentials for the Tradeprint API, if you do not already have these then please visit

Installation
------------

[](#installation)

Via composer

```
composer require tradeprint/tradeprint-php-sdk

```

Manually (For WordPress, Magento etc...)

1. Download the SDK
2. Include it in your project directory
3. Import it as below

```
require_once('path-to-tradeprint-sdk/init.php');
```

Usage
-----

[](#usage)

```
try {
    $tradeprint = new Tradeprint\TradeprintSDK('YOUR_TP_USERNAME', 'YOUR_TP_PASSWORD', 'sandbox');
    $orderService = $tradeprint->getOrderService();

    $result = $orderService->getOrder('YOUR_ORDER_REFERENCE');

    $order = $result->toArray();
    echo 'Got order => '.print_r($order, true);

} catch (Tradeprint\TpAuthorizationException $e) {
    echo 'Invalid username or password';
} catch (Tradeprint\TPException $e) {
    echo 'Error getting order ' . $e->getMessage() . PHP_EOL;
    print_r($e->getDetails());
}
```

Discover more with our detailed [examples](examples)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Total

5

Last Release

1874d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/758ee5833367c684e4cb78f7376d123019c3c543eb5747d47756d95f57237992?d=identicon)[tradeprint](/maintainers/tradeprint)

---

Top Contributors

[![alanliv](https://avatars.githubusercontent.com/u/63227117?v=4)](https://github.com/alanliv "alanliv (5 commits)")[![MrLazzyyy](https://avatars.githubusercontent.com/u/63225409?v=4)](https://github.com/MrLazzyyy "MrLazzyyy (3 commits)")[![dhadlandtp](https://avatars.githubusercontent.com/u/51643808?v=4)](https://github.com/dhadlandtp "dhadlandtp (1 commits)")[![michaelmarkie](https://avatars.githubusercontent.com/u/1159935?v=4)](https://github.com/michaelmarkie "michaelmarkie (1 commits)")[![mmajkatradeprint](https://avatars.githubusercontent.com/u/50447193?v=4)](https://github.com/mmajkatradeprint "mmajkatradeprint (1 commits)")

---

Tags

printprint apiTradeprint

### Embed Badge

![Health badge](/badges/tradeprint-tradeprint-php-sdk/health.svg)

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

###  Alternatives

[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[printapi/printapi-php

A library for using our web-to-print API from PHP.

1245.7k](/packages/printapi-printapi-php)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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