elife/api-problem

eLife Sciences RFC 7807 handler

Installs: 14 068

Dependents: 1

Suggesters: 1

Security: 0

Stars: 1

Watchers: 10

Forks: 0

Open Issues: 6

pkg:composer/elife/api-problem

v1.4.0 2024-12-16 15:36 UTC

README

Build Status

This library provides a RFC 7807 handler for the eLife Sciences applications.

Dependencies

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