elife / api-client
eLife Sciences API client
Installs: 24 429
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 12
Forks: 1
Open Issues: 2
Requires
- php: ^7.1 || ^8.0
- beberlei/assert: >=2.2
- composer/package-versions-deprecated: 1.11.99.2
- crell/api-problem: ^3.6
- guzzlehttp/promises: ^1.0
- guzzlehttp/psr7: ^1.0 || ^2.7
- psr/http-message: ^1.0
Requires (Dev)
- guzzlehttp/guzzle: ^6.0 || ^7.0
- mtdowling/jmespath.php: ^2.0
- phpspec/phpspec: ^5.1 || ^6.3 || ^7.5
- phpspec/prophecy: ^1.10
- phpunit/phpunit: ^7.5.20 || ^8.5 || ^9.6 || ^10.2
- psr/log: ^1.0
- squizlabs/php_codesniffer: ^3.10
Suggests
- guzzlehttp/guzzle: ^6.0, to use the Guzzle6HttpClient adapter
- monolog/monolog: ^1.0, to use the HttpMessageProcessor log processor
- mtdowling/jmespath.php: ^2.0, to use the Result::search() method
- psr/log: ^1.0, to use the WarningCheckingHttpClient adapter
This package is auto-updated.
Last update: 2024-11-15 08:21:01 UTC
README
This library provides a PHP client for the eLife Sciences API.
Dependencies
- PHP 7
You will need an implementation of eLife\ApiClient\HttpClient
; the client provides an adapter for Guzzle 6.
Installation and usage
This library provides base HTTP functionality for the classes available in elife/api-sdk-php
. Please use that package instead of consuming this directly.
If you do want to use it, you can do so via composer, e.g. composer require elife/api-client
.
Deprecation warnings
As the eLife API provides deprecation warnings using the HTTP Warning
header, the eLife\ApiClient\HttpClient\WarningCheckingHttpClient
will pass these to a PSR-7 logger.