2017 © Pedro Peláez
 

library silex-badfaith-provider

A provider to BadFaith content negociation library

image

neutron/silex-badfaith-provider

A provider to BadFaith content negociation library

  • Thursday, December 20, 2012
  • by romain
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4,441 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

BadFaith Silex ServiceProvider

BadFaith is a content negociation library you will find here., (*1)

Here is the Silex Service Provider :, (*2)

$app = new Application();
$app->register(new BadFaithServiceProvider());

// optionnal variants
$app['bad-faith.variants'] = array(
    'charset'=> 'UTF-8,iso-8859-1;q=0.9'
);

$app->get('/', function(Application $app) {
    $app['bad-faith']->headerLists['accept_language']->getPreferred();
});
$app->run();

License

MIT License, (*3)

The Versions

20/12 2012

dev-master

9999999-dev

A provider to BadFaith content negociation library

  Sources   Download

MIT

The Requires

 

The Development Requires

content negociation