matthiasnoback/leanpub-api-client

A PHP client for the Leanpub API

v1.2.3 2022-05-03 07:34 UTC

This package is auto-updated.

Last update: 2024-11-30 01:53:41 UTC


README

This library contains a PHP implementation of a client that can be used to connect to the Leanpub 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

Using Composer, require the matthiasnoback/leanpub-api-client package.

This package uses the HTTPPlug to connect to the Leanpub API. This means you can any HTTP client you like by installing its adapter.

Usage

See the directory 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.