matthiasnoback / leanpub-api-client
A PHP client for the Leanpub API
Installs: 7 453
Dependents: 0
Suggesters: 0
Security: 0
Stars: 22
Watchers: 5
Forks: 3
Open Issues: 0
Requires
- php: ^8.0
- ext-json: *
- beberlei/assert: ^3.3
- php-http/client-implementation: ^1.0
- php-http/discovery: ^1.14
- php-http/httplug: ^2.3
- php-http/logger-plugin: ^1.3
- php-http/message: ^1.13
- php-http/message-factory: ^1.0
- psr/http-message: ^1.0
- symfony/console: ^6.0
- symfony/dotenv: ^6.0
- thecodingmachine/safe: ^1.3
Requires (Dev)
- matthiasnoback/phpunit-asynchronicity: ^2.2
- php-http/guzzle7-adapter: ^0.1.1
- phpstan/phpstan: ^1.6.3
- phpstan/phpstan-beberlei-assert: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^6.0
This package is auto-updated.
Last update: 2024-10-30 01:42:37 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.