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

AbandonedArchivedLibrary[API Development](/categories/api)

pwinty/php-pwinty
=================

PHP API wrapper for Pwinty.com

2.1.1(10y ago)115724[1 issues](https://github.com/Pwinty/php-pwinty/issues)CC-BY-3.0PHP

Since Nov 12Pushed 9y ago6 watchersCompare

[ Source](https://github.com/Pwinty/php-pwinty)[ Packagist](https://packagist.org/packages/pwinty/php-pwinty)[ RSS](/packages/pwinty-php-pwinty/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

PHP Pwinty
==========

[](#php-pwinty)

A PHP implementation of the Pwinty HTTP API v2.1

Based on an implementation of API v1 by Brad Pineau

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

[](#installation)

### With Composer

[](#with-composer)

Add the following to the require section of your composer.json file:

```
"pwinty/php-pwinty": "dev-master"

```

### Without Composer

[](#without-composer)

Add this line to your application:

```
require_once("/pwinty/php-pwinty.php");

```

Declare a new instance of php-pwinty

```
use pwinty\PhpPwinty;

$config = array(
    'api'        => 'sandbox',
    'merchantId' => 'xxxxxxxxxxxxxxxxx',
    'apiKey'     => 'xxxxxxxxxxxxxxxxx'
);
$pwinty = new PhpPwinty($config);

```

Example Usage
-------------

[](#example-usage)

Catalogue

```
$catalogue = $pwinty->getCatalogue(
    "GB",               //country code
    "Pro"               //quality
);

```

Countries

```
$countries = $pwinty->getCountries();

```

Orders

```
//gets all orders
$order = $pwinty->getOrder();

//gets one order
$order = $pwinty->getOrderStatus("1234");

//creates a new order
$order = $pwinty->createOrder(
    "Chuck Norris",     //name
    "chuck@norris.com", //email address
    "123 Some Road",    //address1
    "Some place",       //address 2
    "Some town",        //town
    "Some state",       //state
    "12345",            //postcode or zip
    "GB",               //country code
    "GB",               //destination code
    true,               //tracked shipping
    "InvoiceMe",        //payment method
    "Pro"               //quality
);

//updates an order
$order = $pwinty->updateOrder(
    "1234",             //order id
    "Chuck Norris",     //name
    "123 Some Road",    //address1
    "Some place",       //address 2
    "Some town",        //town
    "Some state",       //state
    "12345",            //postcode or zip
);

//change order status
$pwinty->updateOrderStatus(
    "1234,              //orderid
    "Cancelled"         //status
);

//get order status
$order = $pwinty->getOrderStatus(
    "1234"              //order id
);

```

Photos

```
//gets information about photos for an order
$photos = $pwinty->getPhotos(
    "1234"              //order id
);

//gets information about a single photo
$photo = $pwinty->getPhotos(
    "1234",             //order id
    "123456"            //photo id
);

//adds a photo
$pwinty->addPhoto(
    "1234",                             //order id
    "4x6",                              //print size
    "http://www.mysite.com/photo.jpg",  //image url
    "1",                                //print quantity
    "ShrinkToFit",                      //resize method
    "2000",                             //price to user
    "811cc87f4f77d6c33d638f9def39473b", //md5 hash
    "ewhweo42ufh2woed45f2sdf4yt5sdufw"  //file
);

//delete a photo
$pwinty->deletePhoto(
    "1234",             //order id
    "123456"            //photo id
);

```

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 82.6% 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 ~423 days

Total

2

Last Release

3772d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9bdbac62057add5e47d147174ce295e3d73f552086dcfacb2cacdc0dba25d517?d=identicon)[atwright147](/maintainers/atwright147)

---

Top Contributors

[![atwright147](https://avatars.githubusercontent.com/u/986665?v=4)](https://github.com/atwright147 "atwright147 (19 commits)")[![hudster](https://avatars.githubusercontent.com/u/1851802?v=4)](https://github.com/hudster "hudster (3 commits)")[![ollybowman](https://avatars.githubusercontent.com/u/1855219?v=4)](https://github.com/ollybowman "ollybowman (1 commits)")

---

Tags

apipwintypwinty.com

### Embed Badge

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

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

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

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