Skip to content

romainneutron/BadFaith-ServiceProvider

Repository files navigation

#BadFaith Silex ServiceProvider

BadFaith is a content negociation library you will find here.

Here is the Silex Service Provider :

$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

About

This project is not maintained anymore

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages