Awesome
Leanpub API client for PHP
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.