elife / api-problem
eLife Sciences RFC 7807 handler
v1.4.0
2024-12-16 15:36 UTC
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
- v1.4.0
- v1.3.1
- v1.3.0
- 1.2.0
- dev-master / 1.1.x-dev
- v1.1.0
- v1.0.0
- dev-renovate/phpunit-phpunit-13.x
- dev-renovate/packagist-phpunit-phpunit-vulnerability
- dev-renovate/major-symfony
- dev-renovate/squizlabs-php_codesniffer-4.x
- dev-renovate/guzzlehttp-psr7-2.x
- dev-renovate/actions-checkout-6.x
- dev-renovate/composer-2.x
This package is auto-updated.
Last update: 2026-04-20 21:57:16 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