PHPackages                             toktokdev/printapi-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. toktokdev/printapi-sdk

ActiveLibrary

toktokdev/printapi-sdk
======================

Unofficial PHP SDK for PrintAPI

v1.0.1-beta(1mo ago)0164MITPHPPHP ^8.3CI passing

Since Apr 2Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/TokTok-dev/printapi-sdk)[ Packagist](https://packagist.org/packages/toktokdev/printapi-sdk)[ RSS](/packages/toktokdev-printapi-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (14)Versions (3)Used By (0)

PrintAPI SDK
============

[](#printapi-sdk)

Unofficial PHP SDK for PrintAPI built with [Saloon v3](https://github.com/saloonphp/saloon).

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

[](#requirements)

- PHP 8.3 or higher
- Composer

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

[](#installation)

```
composer require toktokdev/printapi-sdk
```

Usage
-----

[](#usage)

Initialize the API client. Oauth2 authentication is handled automatically by the SDK using the client credentials flow:

```
use PrintAPI\PrintAPI;

// 1. Initialize the API client
$api = new PrintApi(
    clientId: 'your_client_id',
    clientSecret: 'your_client_secret',
    testMode: true // Use test environment
);

// 2. Create an access token authenticator

$authenticator = $api->getAccessToken();

// 3. Authenticate the connector

$api->authenticate($authenticator);
```

See the [official Saloon documentation](https://docs.saloon.dev/digging-deeper/oauth2-authentication/client-credentials-grant) for more information on the OAuth2 Client Credentials Grant.

API Implementation Status
-------------------------

[](#api-implementation-status)

CategoryEndpointStatus**Orders**`POST /orders`✅ Implemented`GET /orders/{id}`✅ Implemented`GET /orders/{id}/status`✅ Implemented`GET /orders?offset={offset}&limit={limit}`✅ Implemented`GET /sync/statuses?since={since}`✅ Implemented**Checkout**`POST /checkout/{code}`🚧 Planned`GET /checkout/{code}`🚧 Planned`POST /coupons/quote`🚧 Planned**Shipping**`POST /shipping/quote`✅ Implemented**Uploads**`POST /files/{code}`🚧 Planned**Products**`GET /products?offset={offset}&limit={limit}`✅ Implemented`GET /products/{id}`✅ ImplementedAvailable Resources
-------------------

[](#available-resources)

Orders

```
// Place an order
$order = $api->orders()->create($orderData);

// Get a single order
$order = $api->orders()->get('order_id');

// Get order status
$status = $api->orders()->getStatus('order_id');

// List orders (with pagination)
$orders = $api->orders()->list();

// Get status updates since date
$updates = $api->orders()->getStatusUpdates($since);
```

Products

```
// List all products
$products = $api->products()->list();

// Get single product
$product = $api->products()->get('product_id');
```

Shipping

```
// Get shipping quote
$quote = $api->shipping()->getQuote($quoteRequest);
```

Development
===========

[](#development)

```
# Install dependencies
composer install

# Run tests
composer test

# Run code style fixer
composer lint

# Run static analysis
composer phpstan
```

License
=======

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance91

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~360 days

Total

2

Last Release

41d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ba7c4f1def720d67291aa0f0e807ab22f1dd78e64724ab893c96ee4df819240?d=identicon)[TokTok-dev](/maintainers/TokTok-dev)

---

Top Contributors

[![TokTok-dev](https://avatars.githubusercontent.com/u/174060531?v=4)](https://github.com/TokTok-dev "TokTok-dev (11 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/toktokdev-printapi-sdk/health.svg)

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

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[illuminate/support

The Illuminate Support package.

583107.1M34.4k](/packages/illuminate-support)[illuminate/events

The Illuminate Events package.

13454.3M1.7k](/packages/illuminate-events)[ohdearapp/ohdear-php-sdk

An SDK to easily work with the Oh Dear API

742.6M13](/packages/ohdearapp-ohdear-php-sdk)[illuminate/view

The Illuminate View package.

13144.9M1.7k](/packages/illuminate-view)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)

PHPackages © 2026

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