2017 © Pedro Peláez
 

library api-problem

eLife Sciences RFC 7807 handler

image

elife/api-problem

eLife Sciences RFC 7807 handler

  • Thursday, March 15, 2018
  • by thewilkybarkid
  • Repository
  • 8 Watchers
  • 0 Stars
  • 745 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 17 % Grown

The README.md

eLife API Problem PHP

Build Status, (*1)

This library provides a RFC 7807 handler for the eLife Sciences applications., (*2)

Dependencies

Installation

composer require elife/api-problem, (*3)

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., (*4)

Running the tests

vendor/bin/phpunit, (*5)

The Versions

29/01 2018