2017 © Pedro PelĂĄez
 

library http-adapter-auth

Easily authenticate requests in Ivory Http Adapter

image

indigophp/http-adapter-auth

Easily authenticate requests in Ivory Http Adapter

  • Friday, November 6, 2015
  • by mark.sagikazar
  • Repository
  • 2 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 29 % Grown

The README.md

DEPRECATED in favor of https://github.com/php-http/authentication, (*1)

Ivory Http Adapter Authentication plugin

Latest Version Software License Build Status Code Coverage Quality Score HHVM Status Total Downloads, (*2)

Easily authenticate requests in Ivory Http Adapter., (*3)

Install

Via Composer, (*4)

``` bash $ composer require indigophp/http-adapter-auth, (*5)



## Usage 1. Create your custom authentication implementing `Indigo\HttpAdapter\Authentication` interface (BasicAuth is provided by the package) 2. Wrap your HTTP Adapter of choice into an `Indigo\HttpAdapter\AuthenticatingHttpAdapter` 3. Enjoy! ``` php use Indigo\HttpAdapter\AuthenticatingHttpAdapter; use Indigo\HttpAdapter\Authentication\BasicAuth; use Ivory\HttpAdapter\HttpAdapterFactory; $httpAdapter = HttpAdapterFactory::guess(); $authentication = new BasicAuth('john.doe', 'secret'); $httpAdapter = new AuthenticatingHttpAdapter($httpAdapter, $authentication);

Testing

bash $ phpspec run, (*6)

Looking forward to PHP 7

PHP 7 will introduce scalar type hints, thus for the long run it makes no sense to write checks for scalar types. Until PHP 7 is not released (and became the most commonly used version) beberlei/assert is used for type checking. Any further checks should be done in the code., (*7)

Contributing

Please see CONTRIBUTING for details., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

06/11 2015

dev-master

9999999-dev https://indigophp.com

Easily authenticate requests in Ivory Http Adapter

  Sources   Download

MIT

The Requires

 

The Development Requires

by MĂĄrk SĂĄgi-KazĂĄr

auth http-adapter

22/04 2015

dev-php7

dev-php7 https://indigophp.com

Easily authenticate requests in Ivory Http Adapter

  Sources   Download

MIT

The Requires

 

The Development Requires

by MĂĄrk SĂĄgi-KazĂĄr

auth http-adapter