elife / api-problem
eLife Sciences RFC 7807 handler
Installs: 11 896
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
- 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/major-symfony
- dev-renovate/phpunit-phpunit-11.x
- dev-renovate/guzzlehttp-psr7-2.x
- dev-renovate/composer-2.x
- dev-fix-specific-version-dockerfile
- dev-renovate/php-8.x
- dev-upgrade-symfony-components
- dev-renovate/configure
- dev-update-dependencies
- dev-sec_alert_http_foundation
- dev-CVE-2019-18888
This package is auto-updated.
Last update: 2024-12-17 18:27:11 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