elife / api-problem
eLife Sciences RFC 7807 handler
Installs: 12 287
Dependents: 1
Suggesters: 1
Security: 0
Stars: 0
Watchers: 11
Forks: 0
Open Issues: 5
Requires
- php: ^7.1 || ^8.0
- crell/api-problem: ^3.6
- symfony/http-foundation: >=2.8.52 || ^4.4 || ^5.0
Requires (Dev)
- guzzlehttp/psr7: ^1.0
- phpunit/phpunit: ^7.5 || ^9.6
- pimple/pimple: ^3.0
- silexandfriends/silex: ^2.3 || ^3.0
- squizlabs/php_codesniffer: ^3.10
- symfony/browser-kit: ^3.0 || ^4.4 || ^5.0
- symfony/http-kernel: ^3.0 || ^4.4 || ^5.0
Suggests
- silex/silex: ^2.0, to use ApiProblemProvider
Conflicts
- sebastian/comparator: <1.2.3
This package is auto-updated.
Last update: 2025-01-17 18:44:18 UTC
README
This library provides a RFC 7807 handler for the eLife Sciences applications.
Dependencies
- Composer
- PHP 7
Installation
composer require elife/api-problem
Set up
Silex
use eLife\ApiProblem\Silex\ApiProblemProvider; $app->register(new ApiProblemProvider());
Exception details (eg stacktrace) will be included based on the value of $app['debug']
. This can be overridden by setting $app['api_problem.factory.include_exception_details']
to true
or false
.
Running the tests
vendor/bin/phpunit