mrprompt / silex-authorization-header-provider
A simple Authorization Header Reader Provider to Silex Rest APIs
Installs: 1 030
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 2
Open Issues: 0
Requires
- php: >=5.5
Requires (Dev)
- phpunit/phpunit: ^4.8
- silex/silex: 1.*@dev
This package is auto-updated.
Last update: 2024-12-21 07:13:14 UTC
README
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