PHPackages                             sunnysideup/afterpay-basics - 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. [Payment Processing](/categories/payments)
4. /
5. sunnysideup/afterpay-basics

ActiveLibrary[Payment Processing](/categories/payments)

sunnysideup/afterpay-basics
===========================

Integrate easily with the afterpay.com.au API - copy from culture kings with newer PHP stuff

v2.2.0(8y ago)071MITPHPPHP &gt;=5.6

Since Aug 24Pushed 1y agoCompare

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

READMEChangelogDependencies (13)Versions (23)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

31

—

LowBetter than 68% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

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

3245d 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/167154?v=4)[Sunny Side Up](/maintainers/sunnysideup)[@sunnysideup](https://github.com/sunnysideup)

---

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)")[![sunnysideup](https://avatars.githubusercontent.com/u/167154?v=4)](https://github.com/sunnysideup "sunnysideup (5 commits)")[![joshbmarshall](https://avatars.githubusercontent.com/u/4043827?v=4)](https://github.com/joshbmarshall "joshbmarshall (3 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)")[![James-Azzopardi](https://avatars.githubusercontent.com/u/3448493?v=4)](https://github.com/James-Azzopardi "James-Azzopardi (1 commits)")[![evulse](https://avatars.githubusercontent.com/u/1631174?v=4)](https://github.com/evulse "evulse (1 commits)")[![Jore](https://avatars.githubusercontent.com/u/696506?v=4)](https://github.com/Jore "Jore (1 commits)")

---

Tags

paymentsshoppingafterpay

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[culturekings/afterpay

Integrate easily with the afterpay.com.au API

1087.9k1](/packages/culturekings-afterpay)

PHPackages © 2026

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