PHPackages                             printfection/printfection-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. printfection/printfection-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

printfection/printfection-php
=============================

Printfection PHP Library

05.4k[2 issues](https://github.com/Printfection/printfection-php/issues)PHP

Since Jan 21Pushed 7y ago8 watchersCompare

[ Source](https://github.com/Printfection/printfection-php)[ Packagist](https://packagist.org/packages/printfection/printfection-php)[ RSS](/packages/printfection-printfection-php/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

You can sign up for a Printfection account at .

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

[](#requirements)

PHP 5.2 and later.

Composer
--------

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Add this to your `composer.json`:

```
{
  "require": {
    "printfection/printfection-php": "1.*"
  }
}

```

Then install via:

```
composer.phar install

```

To use the bindings, either user Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):

```
require_once('vendor/autoload.php');

```

Or manually:

```
require_once('/path/to/vendor/printfection/printfection-php/lib/Printfection.php');

```

Manual Installation
-------------------

[](#manual-installation)

Obtain the latest version of the Printfection PHP bindings with:

```
git clone https://github.com/printfection/printfection-php

```

To use the bindings, add the following to your PHP script:

```
require_once("/path/to/printfection-php/lib/Printfection.php");

```

Getting Started
---------------

[](#getting-started)

Simple usage looks like:

```
Printfection::setApiKey('ACCESS_TOKEN');

$order = Printfection_Order::create(array(
    'campaign_id' => 1,
    'ship_to' => array(
            'name' => 'Herman Munster',
            'address' => '1313 Mockingbird Lane',
            'address2' => '#1200',
            'city' => 'Mockingbird Heights',
            'state' => 'California',
            'zip' => '90210',
            'country' => 'US',
            'email' => 'herman@printfection.com',
            'phone' => '3034597990'
        ),
    'lineitems' => array(
            array(
                    'item_id' => 1,
                    'size_id' => 1,
                    'quantity' => 13
                )
        )
));

echo $order;

```

Documentation
-------------

[](#documentation)

Please see  for up-to-date documentation.

Acknowledgements
----------------

[](#acknowledgements)

This API client was strongly inspired by (and based on) the [Stripe PHP client library](https://github.com/stripe/stripe-php/). Special thanks to everyone who has worked on that project.

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.3% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/920019?v=4)[Zachary Flower](/maintainers/zachflower)[@zachflower](https://github.com/zachflower)

---

Top Contributors

[![zachflower](https://avatars.githubusercontent.com/u/920019?v=4)](https://github.com/zachflower "zachflower (10 commits)")[![kevinmateri](https://avatars.githubusercontent.com/u/1437213?v=4)](https://github.com/kevinmateri "kevinmateri (2 commits)")

### Embed Badge

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

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

###  Alternatives

[webcreate/jquery-ias

Infinite Ajax Scroll: A jQuery plugin that turns your server-side pagination into an infinite scrolling one using AJAX

899727.5k3](/packages/webcreate-jquery-ias)[fntneves/laravel-transactional-events

Transaction-aware Event Dispatcher for Laravel

3202.7M2](/packages/fntneves-laravel-transactional-events)

PHPackages © 2026

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