PHPackages                             indigophp/http-adapter-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. indigophp/http-adapter-auth

AbandonedArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

indigophp/http-adapter-auth
===========================

Easily authenticate requests in Ivory Http Adapter

0420PHP

Since Apr 22Pushed 10y ago1 watchersCompare

[ Source](https://github.com/indigophp-archive/http-adapter-auth)[ Packagist](https://packagist.org/packages/indigophp/http-adapter-auth)[ RSS](/packages/indigophp-http-adapter-auth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

> DEPRECATED in favor of

Ivory Http Adapter Authentication plugin
========================================

[](#ivory-http-adapter-authentication-plugin)

[![Latest Version](https://camo.githubusercontent.com/2c8c1871ad3a7f37bfd7bf21bbe7ef927d20ec9e0dde16df403bfced933b2284/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f696e6469676f7068702f687474702d616461707465722d617574682e7376673f7374796c653d666c61742d737175617265)](https://github.com/indigophp/http-adapter-auth/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/54f3c54d77371ffb16b51ce42f5fe6aa14e24c58fd4deccf52d7a96a939fd81c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f696e6469676f7068702f687474702d616461707465722d617574682e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/indigophp/http-adapter-auth)[![Code Coverage](https://camo.githubusercontent.com/23e34123c9e20f4da1ccca911c13f9e260dc508d25ad5a9f5a60224db3d2b20d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f696e6469676f7068702f687474702d616461707465722d617574682e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/indigophp/http-adapter-auth)[![Quality Score](https://camo.githubusercontent.com/3ea208afc6951cbd7c64c6421fcdfbf920dc90582f490c0e9474c32056d4a1bf/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f696e6469676f7068702f687474702d616461707465722d617574682e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/indigophp/http-adapter-auth)[![HHVM Status](https://camo.githubusercontent.com/03f397c6725914ba8af7dfda050e6ecd469837be52b95b9dfab7d0132a229057/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f696e6469676f7068702f687474702d616461707465722d617574682e7376673f7374796c653d666c61742d737175617265)](http://hhvm.h4cc.de/package/indigophp/http-adapter-auth)[![Total Downloads](https://camo.githubusercontent.com/0a3948751095dbbac177ba28de57d987421181a1557afd0cf4aea7cd1e80186a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e6469676f7068702f687474702d616461707465722d617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/indigophp/http-adapter-auth)

**Easily authenticate requests in [Ivory Http Adapter](https://github.com/egeloen/ivory-http-adapter).**

Install
-------

[](#install)

Via Composer

```
$ composer require indigophp/http-adapter-auth
```

Usage
-----

[](#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!

```
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
-------

[](#testing)

```
$ phpspec run
```

Looking forward to PHP 7
------------------------

[](#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](https://github.com/beberlei/assert/) is used for type checking. Any further checks should be done in the code.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Márk Sági-Kazár](https://github.com/sagikazarmark)
- [All Contributors](https://github.com/indigophp/http-adapter-auth/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e4e105cea62b616d4cb376b08a849b6a428f646998537de150d16a8eb537b90?d=identicon)[mark.sagikazar](/maintainers/mark.sagikazar)

---

Top Contributors

[![sagikazarmark](https://avatars.githubusercontent.com/u/1226384?v=4)](https://github.com/sagikazarmark "sagikazarmark (9 commits)")

### Embed Badge

![Health badge](/badges/indigophp-http-adapter-auth/health.svg)

```
[![Health](https://phpackages.com/badges/indigophp-http-adapter-auth/health.svg)](https://phpackages.com/packages/indigophp-http-adapter-auth)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
