mrprompt/silex-authorization-header-provider

A simple Authorization Header Reader Provider to Silex Rest APIs

dev-master 2016-10-21 04:01 UTC

This package is auto-updated.

Last update: 2024-10-21 06:50:24 UTC


README

Build Status Code Climate Test Coverage Issue Count SensioLabsInsight Dependency Status Codacy Badge

Get the "Authorization" key from header.

Install

composer require mrprompt/silex-authorization-header-provider

Usage

use SilexFriends\Header\Header as HeaderServiceProvider;

$token = $app[HeaderServiceProvider::HTTP_HEADER_GET_TOKEN]($request);

print_r($token);

Testing

Just run phpunit without parameters

phpunit

License

MIT