PHPackages                             8ctopus/paddle-rest-api - 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. 8ctopus/paddle-rest-api

ActiveLibrary[API Development](/categories/api)

8ctopus/paddle-rest-api
=======================

Paddle REST API implementation using PSR-7, PSR-17 and PSR-18

0.9.2(2w ago)017MITPHPPHP &gt;=8.4

Since Apr 30Pushed 2w agoCompare

[ Source](https://github.com/8ctopus/paddle-rest-api)[ Packagist](https://packagist.org/packages/8ctopus/paddle-rest-api)[ Docs](https://github.com/8ctopus/paddle-rest-api)[ RSS](/packages/8ctopus-paddle-rest-api/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (4)Versions (17)Used By (0)

Paddle REST API
===============

[](#paddle-rest-api)

An unoffical php implementation of the [Paddle REST API](https://developer.paddle.com/api-reference/overview) using `PSR-7`, `PSR-17` and `PSR-18` as I didn't like the official API's implementation.

The package is a work in progress and contributions are welcome. For now, it covers `Products`, `Prices`, `Discounts`, `Discount Groups`, `Transactions` (partial), `Adjustments` (refunds) and `Customers`.

install package
---------------

[](#install-package)

```
composer require 8ctopus/paddle-rest-api

```

before you get started
----------------------

[](#before-you-get-started)

Copy `.env.example` to `.env` and fill in your Paddle REST API key. If you don't have it yet, follow the guide:

```
https://developer.paddle.com/api-reference/about/authentication#get-api-key

```

demo
----

[](#demo)

Here's a code snippet that shows the general architecture. To see all possibilites run `php demo.php`.

```
use Nimbly\Capsule\Factory\RequestFactory;
use Nimbly\Capsule\Factory\StreamFactory;
use Nimbly\Shuttle\Shuttle;
use Oct8pus\Paddle\HttpHandler;
use Oct8pus\Paddle\Auth;
use Oct8pus\Paddle\Products;

$handler = new HttpHandler(
    // PSR-18 http client
    new Shuttle(),
    // PSR-17 request factory
    new RequestFactory(),
    // PSR-7 stream
    new StreamFactory()
);

$sandbox = true;

$auth = new Auth($sandbox, $handler, $env['secret']);

$products = new Products($sandbox, $handler, $auth);

var_dump($products->list());
```

todo
----

[](#todo)

- implement tests

issues with the current minimalist architecture
-----------------------------------------------

[](#issues-with-the-current-minimalist-architecture)

- hard to use the demo for more complex things
- create complex items as arrays are not presently supported

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance96

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~1 days

Total

16

Last Release

20d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4dafd5f7ef8134a5c9b231686c5da3d6416db09139b45aac0b26952178dffb8a?d=identicon)[8ctopus](/maintainers/8ctopus)

---

Top Contributors

[![8ctopus](https://avatars.githubusercontent.com/u/13252042?v=4)](https://github.com/8ctopus "8ctopus (59 commits)")

---

Tags

apipaddle

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/8ctopus-paddle-rest-api/health.svg)

```
[![Health](https://phpackages.com/badges/8ctopus-paddle-rest-api/health.svg)](https://phpackages.com/packages/8ctopus-paddle-rest-api)
```

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.5k](/packages/m165437-laravel-blueprint-docs)[rayatomsk/paddle-api

Paddle.com API PHP library

1125.0k](/packages/rayatomsk-paddle-api)

PHPackages © 2026

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