ConNeg Bundle

A Symfony2 Bundle providing content negotiation services you your application, built for PHP >= 5.3 and Symfony >= 2.2.

Introduction

This bundle enables you to perform negotiation on requests via simple configuration.

Features:

  • Allows definition of services to perform negotiation on User-Agent fields & application preferences.
  • Retrieve the best match or a list of all processed types.
  • Negotiation on the Accept, Accept-Charset, Accept-Encoding and Accept-Language HTTP fields.

This library offers a bridge between Symfony and the ptlis/ConNeg content negotiation library.

Documentation

Contributing

You can contribute by submittining an Issue to the issue tracker, improving the documentation or submitting a pull request. For pull requests i’d prefer that the code style and test coverage is maintained, but I am happy to work through any minor issues that may arise so that the request can be merged.