PHPackages                             culturekings/afterpay - 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. culturekings/afterpay

ActiveLibrary

culturekings/afterpay
=====================

Integrate easily with the afterpay.com.au API

v2.2.0(8y ago)1087.9k19[2 issues](https://github.com/culturekings/afterpay/issues)[1 PRs](https://github.com/culturekings/afterpay/pulls)1MITPHPPHP &gt;=5.6CI failing

Since Aug 24Pushed 3y ago13 watchersCompare

[ Source](https://github.com/culturekings/afterpay)[ Packagist](https://packagist.org/packages/culturekings/afterpay)[ RSS](/packages/culturekings-afterpay/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (13)Versions (21)Used By (1)

[Afterpay API](https://culturekings.github.io/afterpay/)
========================================================

[](#afterpay-api)

PHP library to interface with the [Afterpay API](http://docs.afterpay.com.au/)

[![Coverage Status](https://camo.githubusercontent.com/c2255142d9d629c935812bef1070102617c976fc0180fc097eb60cefd51f59c1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f63756c747572656b696e67732f61667465727061792f62616467652e737667)](https://coveralls.io/github/culturekings/afterpay)[![CircleCI](https://camo.githubusercontent.com/fd1a81576e4abea00e8bfa608d1f4d639441727db1c338b33ab15359bf431eb5/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f63756c747572656b696e67732f61667465727061792e7376673f7374796c653d737667)](https://circleci.com/gh/culturekings/afterpay)[![Scrutinizer](https://camo.githubusercontent.com/72a4e74a66ca3990a0f14956b77a9425bf7c5882c340eaced4aa8032aa94fe4f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f63756c747572656b696e67732f61667465727061792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/culturekings/afterpay/)[![SensioLabsInsight](https://camo.githubusercontent.com/6089443bf75a0ccea2a09dfcf38df9b1d3ccd297d9b57bf72089fc1bf26ea596/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f62396239313065612d646334372d343435392d613762312d6666396461373665646562642e737667)](https://insight.sensiolabs.com/projects/b9b910ea-dc47-4459-a7b1-ff9da76edebd)

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

[](#installation)

The recommended way to install is via [Composer](http://getcomposer.org).

```
composer require culturekings/afterpay
```

Don't forget to include Composer's auto-loader if you haven't already:

```
require 'vendor/autoload.php';
```

Merchant API
------------

[](#merchant-api)

[API Documentation](docs/merchant/api.md)

InStore API
-----------

[](#instore-api)

[API Documentation](docs/instore/api.md)

Known Afterpay Issues
---------------------

[](#known-afterpay-issues)

1. Passing in a Money value with more than 2 decimal places will result in an error from Afterpay saying 'The request contains improperly formated JSON'. [Issues #33](https://github.com/culturekings/afterpay/issues/33) outlines this problem. This library will not provide rounding or manipulation of values as it's is the responsability of the project to provide accurate values. Thanks @rudolfl for the report.

Special Thanks
--------------

[](#special-thanks)

[JMS Serializer](https://github.com/schmittjoh/serializer)

[Guzzle](https://github.com/guzzle/guzzle)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 75.4% 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 ~16 days

Recently: every ~30 days

Total

19

Last Release

3246d ago

Major Versions

v0.1.6 → v1.0.02017-01-22

v1.1.3 → v2.0.02017-02-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17635174?v=4)[Culture Kings](/maintainers/culturekings)[@culturekings](https://github.com/culturekings)

![](https://www.gravatar.com/avatar/89f4b2dc9b243ef9bcb85efa3a50321653ee2da59872ac23baa93d5a31791de8?d=identicon)[jared-fraser](/maintainers/jared-fraser)

---

Top Contributors

[![jared-fraser](https://avatars.githubusercontent.com/u/1113900?v=4)](https://github.com/jared-fraser "jared-fraser (43 commits)")[![paulchiu](https://avatars.githubusercontent.com/u/3478672?v=4)](https://github.com/paulchiu "paulchiu (6 commits)")[![artem328](https://avatars.githubusercontent.com/u/8807891?v=4)](https://github.com/artem328 "artem328 (2 commits)")[![webaction](https://avatars.githubusercontent.com/u/2551285?v=4)](https://github.com/webaction "webaction (2 commits)")[![Jore](https://avatars.githubusercontent.com/u/696506?v=4)](https://github.com/Jore "Jore (1 commits)")[![joshbmarshall](https://avatars.githubusercontent.com/u/4043827?v=4)](https://github.com/joshbmarshall "joshbmarshall (1 commits)")[![evulse](https://avatars.githubusercontent.com/u/1631174?v=4)](https://github.com/evulse "evulse (1 commits)")[![James-Azzopardi](https://avatars.githubusercontent.com/u/3448493?v=4)](https://github.com/James-Azzopardi "James-Azzopardi (1 commits)")

---

Tags

afterpaypaymentsphppaymentsshoppingafterpay

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/culturekings-afterpay/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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