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. [API Development](/categories/api)
4. /
5. toktokdev/printapi-sdk

ArchivedLibrary[API Development](/categories/api)

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

Unofficial PHP SDK for PrintAPI

v1.0.1-beta(3mo ago)0172MITPHPPHP ^8.3CI failing

Since Apr 2Pushed 3mo 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

37

—

LowBetter than 81% of packages

Maintenance82

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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

96d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/174060531?v=4)[TokTok-dev](/maintainers/TokTok-dev)[@TokTok-dev](https://github.com/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

[whatsdiff/whatsdiff

See what's changed in your project's dependencies

771.2k](/packages/whatsdiff-whatsdiff)[myoutdeskllc/salesforce-php

salesforce library for php8+

1579.5k](/packages/myoutdeskllc-salesforce-php)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1123.7k](/packages/codebar-ag-laravel-docuware)[sandorian/moneybird-api-php

Moneybird API client for PHP

148.2k](/packages/sandorian-moneybird-api-php)

PHPackages © 2026

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