elife / api-problem
eLife Sciences RFC 7807 handler
Installs: 10 659
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 11
Forks: 0
Open Issues: 0
Requires
- php: ^7.1 || ^8.0
- crell/api-problem: ^3.6
- symfony/http-foundation: >=2.8.52 || ^4.4
Requires (Dev)
- guzzlehttp/psr7: ^1.0
- phpunit/phpunit: ^7.5 || ^9.6
- pimple/pimple: ^3.0
- silex/silex: ^2.3
- squizlabs/php_codesniffer: ^3.10
- symfony/browser-kit: ^3.0 || ^4.4
- symfony/http-kernel: ^3.0 || ^4.4
Suggests
- silex/silex: ^2.0, to use ApiProblemProvider
Conflicts
- sebastian/comparator: <1.2.3
This package is auto-updated.
Last update: 2024-10-31 12:31:22 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