PHPackages                             matthiasnoback/leanpub-api-client - 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. matthiasnoback/leanpub-api-client

ActiveLibrary[API Development](/categories/api)

matthiasnoback/leanpub-api-client
=================================

A PHP client for the Leanpub API

v1.2.3(4y ago)227.9k3MITPHPPHP ^8.0CI failing

Since Jun 15Pushed 4y ago3 watchersCompare

[ Source](https://github.com/matthiasnoback/leanpub-api-client)[ Packagist](https://packagist.org/packages/matthiasnoback/leanpub-api-client)[ RSS](/packages/matthiasnoback-leanpub-api-client/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (7)Dependencies (18)Versions (11)Used By (0)

Leanpub API client for PHP
==========================

[](#leanpub-api-client-for-php)

This library contains a PHP implementation of a client that can be used to connect to the [Leanpub API](https://leanpub.com/help/api). It is *not feature-complete*, but the features that are implemented are implemented fully and they work correctly. Feel free to submit PRs for adding new features or fields to existing DTOs, etc.

Installation
============

[](#installation)

Using [Composer](https://getcomposer.org/), require the `matthiasnoback/leanpub-api-client` package.

This package uses the [HTTPPlug](http://docs.php-http.org/en/latest/httplug/library-developers.html) to connect to the Leanpub API. This means you can any HTTP client you like by installing its adapter.

Usage
=====

[](#usage)

See the directory [integration-tests/](integration-tests/) to find out how to use this library.

There's also a command-line application. To find out more about the available commands, run:

```
vendor/bin/leanpub.php
```

Run with `-vvv` to see the HTTP requests that the client makes to the Leanpub API.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 78% 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 ~114 days

Recently: every ~171 days

Total

7

Last Release

1519d ago

PHP version history (3 changes)v1.0.0PHP &gt;=7.4

v1.2.2PHP ^7.4|^8.0

v1.2.3PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1193078?v=4)[Matthias Noback](/maintainers/matthiasnoback)[@matthiasnoback](https://github.com/matthiasnoback)

---

Top Contributors

[![matthiasnoback](https://avatars.githubusercontent.com/u/1193078?v=4)](https://github.com/matthiasnoback "matthiasnoback (32 commits)")[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (9 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/matthiasnoback-leanpub-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/matthiasnoback-leanpub-api-client/health.svg)](https://phpackages.com/packages/matthiasnoback-leanpub-api-client)
```

###  Alternatives

[sylius/sylius

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

8.5k5.8M712](/packages/sylius-sylius)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28146.3k](/packages/phpro-http-tools)[brd6/notion-sdk-php

Notion SDK for PHP

6021.6k](/packages/brd6-notion-sdk-php)[razorpay/ifsc

Razorpay IFSC Codes Library

385204.4k](/packages/razorpay-ifsc)[php-http/httplug-bundle

Symfony integration for HTTPlug

38921.5M59](/packages/php-http-httplug-bundle)

PHPackages © 2026

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