2017 © Pedro Peláez
 

library negotiation-service-provider

Negotiation Service Provider for Silex

image

kphoen/negotiation-service-provider

Negotiation Service Provider for Silex

  • Sunday, June 5, 2016
  • by K-Phoen
  • Repository
  • 1 Watchers
  • 4 Stars
  • 1,529 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

NegotiationServiceProvider Build Status

A Negotiation service provider for Silex., (*1)

Status

This project is DEPRECATED and should NOT be used., (*2)

If someone magically appears and wants to maintain this project, I'll gladly give access to this repository., (*3)

Usage

Initialize the service provider using register() method:, (*4)

<?php

use KPhoen\Provider\NegotiationServiceProvider;

$app->register(new NegotiationServiceProvider());
// or with custom formats, which will be injected in the format negotiator and
// in the request
$app->register(new NegotiationServiceProvider(array(
    'gpx' => array('application/gpx+xml'),
    'kml' => array('application/vnd.google-earth.kml+xml', 'application/vnd.google-earth.kmz'),
)));

Then use it in your controllers:, (*5)

<?php

$app->get('/hello', function() use ($app) {
    $negotiator = $app['negotiator'];

    // do your stuff
});

Configuration

The service provider creates the following services:, (*6)

  • negotiator: a Negotiator instance ;
  • format.negotiator: a FormatNegotiator instance ;
  • language.negotiator: a LanguageNegotiator instance.

Installation

Install the NegotiationServiceProvider adding kphoen/negotiation-service-provider to your composer.json or from CLI:, (*7)

$ php composer.phar require 'kphoen/negotiation-service-provider:~1.0'

Licence

This provider is released under the MIT license., (*8)

The Versions

05/06 2016

dev-master

9999999-dev

Negotiation Service Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

05/06 2016

1.0.4

1.0.4.0

Negotiation Service Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

10/12 2014

1.0.3

1.0.3.0

Negotiation Service Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

25/12 2013

1.0.2

1.0.2.0

Negotiation Service Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

21/11 2013

1.0.1

1.0.1.0

Negotiation Service Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

13/09 2013

1.0.0

1.0.0.0

Negotiation Service Provider for Silex

  Sources   Download

MIT

The Requires