2017 © Pedro Peláez
 

library slim-content-negotiation

Content Negotiation Middleware for Slim 3.0

image

budgetdumpster/slim-content-negotiation

Content Negotiation Middleware for Slim 3.0

  • Wednesday, December 13, 2017
  • by mfrost503
  • Repository
  • 0 Watchers
  • 0 Stars
  • 86 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 197 % Grown

The README.md

Slim Content Negotiation Middleware

Installation

composer require budgetdumpster/slim-content-negotiation:1.0.0, (*1)

Usage

The Content Negotiation Middleware can be easily attached to a slim route like so:, (*2)

<?php

use BudgetDumpster\Middleware\ContentNegotiation;

$app->get('/', function($request, $response, $args) {
    echo 'hello world';
})->add(new ContentNegotiationHalJson);

This will reject any requests that don't have content-types that match the provided content types., (*3)

The Versions

13/12 2017

dev-master

9999999-dev https://github.com/BD-StrategicTech/slim-content-negotiation

Content Negotiation Middleware for Slim 3.0

  Sources   Download

MIT

The Requires

 

The Development Requires

middleware slim content-negotiation

13/12 2017

1.0.0

1.0.0.0 https://github.com/BD-StrategicTech/slim-content-negotiation

Content Negotiation Middleware for Slim 3.0

  Sources   Download

MIT

The Requires

 

The Development Requires

middleware slim content-negotiation