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

ActiveLibrary[API Development](/categories/api)

printful/php-api-sdk
====================

Printful API wrapper

v2.2.11(4y ago)81199.8k↓43.5%26[3 issues](https://github.com/printful/php-api-sdk/issues)[1 PRs](https://github.com/printful/php-api-sdk/pulls)PHPPHP &gt;=5.5.0CI failing

Since Jan 12Pushed 3y ago11 watchersCompare

[ Source](https://github.com/printful/php-api-sdk)[ Packagist](https://packagist.org/packages/printful/php-api-sdk)[ RSS](/packages/printful-php-api-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (1)Versions (27)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/f7accf898a4f7b84027fd0cd336ed5f65dee64f91ed346538b0f25d8aa9062e3/68747470733a2f2f706f7365722e707567782e6f72672f7072696e7466756c2f7068702d6170692d73646b2f762f737461626c652e737667)](https://packagist.org/packages/printful/php-api-sdk)[![Latest Unstable Version](https://camo.githubusercontent.com/595da343c9a65323d10a4ac6a624c62e0f57f513250b68d229be679dbb0f0f2e/68747470733a2f2f706f7365722e707567782e6f72672f7072696e7466756c2f7068702d6170692d73646b2f762f756e737461626c652e737667)](https://packagist.org/packages/printful/php-api-sdk)

Printful API PHP wrapper
========================

[](#printful-api-php-wrapper)

Simple PHP wrapper class for work with Printful API.

API endpoint documentation can be found here:

Installation
============

[](#installation)

Using composer, run `composer require printful/php-api-sdk`

Check out **example** and **test** directories for more specific usage examples.

OAuth
=====

[](#oauth)

[OAuth 2.0](https://developers.printful.com/docs/#section/Authentication:~:text=OAuth%202.0%20is%20the%20preferred%20way%20of%20doing%20authorization%20in%20Printful%20API.)is the preferred way of doing authorization in Printful API. Read more about how to acquire and use an access token in our docs:

You can create an OAuth enabled APIClient using the following factory method:

```
...
use Printful\PrintfulApiClient;
...
$client = PrintfulApiClient::createOauthClient('my-oauth-token')
```

You can still use the old store keys, like this:

```
...
use Printful\PrintfulApiClient;
...
$client = PrintfulApiClient::createLegacyStoreKeyClient('my-legacy-store-key')
```

or, by using the constructor like this:

```
$client = new PrintfulApiClient($storeKey)
```

However, please note that legacy keys will be phased out on September 30th, 2022.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Recently: every ~254 days

Total

24

Last Release

1465d ago

Major Versions

v1.0 → v2.02017-02-21

PHP version history (2 changes)v1.0PHP &gt;=5.4.0

v2.2.6PHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/558abac01811bf200dfff252b1ac15b5cd3fe0e73a57f1c15b2b2a8400f2c504?d=identicon)[printful-developer](/maintainers/printful-developer)

---

Top Contributors

[![pfkristaps](https://avatars.githubusercontent.com/u/144212723?v=4)](https://github.com/pfkristaps "pfkristaps (46 commits)")[![briedis](https://avatars.githubusercontent.com/u/500491?v=4)](https://github.com/briedis "briedis (28 commits)")[![ethancarlsson-pf](https://avatars.githubusercontent.com/u/107544884?v=4)](https://github.com/ethancarlsson-pf "ethancarlsson-pf (18 commits)")[![gatispelcers](https://avatars.githubusercontent.com/u/6830527?v=4)](https://github.com/gatispelcers "gatispelcers (4 commits)")[![artistro08](https://avatars.githubusercontent.com/u/6427230?v=4)](https://github.com/artistro08 "artistro08 (3 commits)")[![NPetrovs](https://avatars.githubusercontent.com/u/13074219?v=4)](https://github.com/NPetrovs "NPetrovs (3 commits)")[![rkistaps](https://avatars.githubusercontent.com/u/22044469?v=4)](https://github.com/rkistaps "rkistaps (2 commits)")[![printful-developer](https://avatars.githubusercontent.com/u/12408303?v=4)](https://github.com/printful-developer "printful-developer (1 commits)")[![kievins](https://avatars.githubusercontent.com/u/8179571?v=4)](https://github.com/kievins "kievins (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k14](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

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

PHPackages © 2026

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