elife / api-problem
eLife Sciences RFC 7807 handler
Installs: 9 622
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 11
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
- crell/api-problem: ^3.6
- symfony/http-foundation: >=2.8.52 || ^4.0
Requires (Dev)
- guzzlehttp/psr7: ^1.0
- phpunit/phpunit: ^5.7.7 || ^6.0
- pimple/pimple: ^3.0
- silex/silex: ^2.0
- squizlabs/php_codesniffer: ^3.10
- symfony/browser-kit: ^2.7 || ^3.0
- symfony/http-kernel: ^2.7 || ^3.0
Suggests
- silex/silex: ^2.0, to use ApiProblemProvider
Conflicts
- sebastian/comparator: <1.2.3
This package is auto-updated.
Last update: 2024-09-27 10:03:57 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