PHPackages                             chippyash/authentication-manager - 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. chippyash/authentication-manager

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

chippyash/authentication-manager
================================

Generic authentication management of identities

2.0.5(8y ago)0232GPL-3.0-or-laterPHPPHP &gt;=5.5CI failing

Since Dec 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/chippyash/Authentication-Manager)[ Packagist](https://packagist.org/packages/chippyash/authentication-manager)[ Docs](http://zf4.biz/packages?utm_source=packagist&utm_medium=web&utm_campaign=blinks&utm_content=authmanager)[ RSS](/packages/chippyash-authentication-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (9)Used By (0)

chippyash/authentication-manager
================================

[](#chippyashauthentication-manager)

Quality Assurance
-----------------

[](#quality-assurance)

[![PHP 5.5](https://camo.githubusercontent.com/219e00452ba9998fcbfe00213b6eb56a8b86d19188783ed34d770d27b041df67/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d352e352d626c75652e737667)](https://camo.githubusercontent.com/219e00452ba9998fcbfe00213b6eb56a8b86d19188783ed34d770d27b041df67/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d352e352d626c75652e737667)[![PHP 5.6](https://camo.githubusercontent.com/88093c79af42bd3c07f4d6aa378289e1f5450411c56753b0323bd7d8b9b1f9ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d352e362d626c75652e737667)](https://camo.githubusercontent.com/88093c79af42bd3c07f4d6aa378289e1f5450411c56753b0323bd7d8b9b1f9ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d352e362d626c75652e737667)[![PHP 7](https://camo.githubusercontent.com/d23ce60b89c28c023d0ca69981ec9afbb17eb08a9cd1b609fd84c15d0732b7ce/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372d626c75652e737667)](https://camo.githubusercontent.com/d23ce60b89c28c023d0ca69981ec9afbb17eb08a9cd1b609fd84c15d0732b7ce/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372d626c75652e737667)[![Build Status](https://camo.githubusercontent.com/5a1b10afe52899ca53d48dc65e6ea4a9a999c39625af9139e6b57e819150cc2b/68747470733a2f2f7472617669732d63692e6f72672f6368697070796173682f41757468656e7469636174696f6e2d4d616e616765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/chippyash/Authentication-Manager)[![Test Coverage](https://camo.githubusercontent.com/b4e3ec997fd3957f3fb7850bea4cde3395c5c89da35aa430e0bc7aaaf75a35dd/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6368697070796173682f41757468656e7469636174696f6e2d4d616e616765722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/chippyash/Authentication-Manager/coverage)[![Code Climate](https://camo.githubusercontent.com/3ac1def79a8f81e586e483cd071367e838d456e18e8d7c8cba82d69c3e7fea08/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6368697070796173682f41757468656e7469636174696f6e2d4d616e616765722f6261646765732f6770612e737667)](https://codeclimate.com/github/chippyash/Authentication-Manager)

### End of life notice

[](#end-of-life-notice)

In March 2018, developer support will be withdrawn from this library for PHP &lt;5.6. Older versions of PHP are now in such little use that the added effort of maintaining compatibility is not effort effective. See [PHP Version Stats](https://seld.be/notes/php-versions-stats-2017-1-edition)for the numbers.

What?
-----

[](#what)

Provides base for creating managers that manage identity entries in some back end authentication system.

The single one provided at present is an HTTP Basic Digest Manager.

The library is released under the [GNU GPL V3 or later license](http://www.gnu.org/copyleft/gpl.html)

When?
-----

[](#when)

If you want more, either suggest it, or better still, fork it and provide a pull request.

How?
----

[](#how)

You can find the [API documentation here](http://chippyash.github.io/Authentication-Manager)

You will find the Test Contract in the docs directory alongside an example Symfony DI container definition.

### Coding Basics

[](#coding-basics)

#### Construction

[](#construction)

```
    use Chippyash\Authentication\Manager\DigestManager;
    use Chippyash\Authentication\Manager\Encoder\BasicEncoder;
    use Chippyash\Authentication\Manager\Digest\BasicDigestCollection;
    use Chippyash\Type\String\StringType;

    $realm = new StringType('realm');
    $digestFileName = new StringType('/path/to/my/file');

    $encoder = new BasicEncoder();
    $encoder->setRealm($realm);

    $collection = new BasicDigestCollection($encoder, $digestFileName);
    $collection->setRealm($realm);

    $this->authManager = new DigestManager($collection);
```

#### Adding new manager types

[](#adding-new-manager-types)

Implement the Chippyash\\Authentication\\Manager\\ManagerInterface to create new types of Authentication Managers.

### Changing the library

[](#changing-the-library)

1. fork it
2. write the test
3. amend it
4. do a pull request

Found a bug you can't figure out?

1. fork it
2. write the test
3. do a pull request

NB. Make sure you rebase to HEAD before your pull request

Where?
------

[](#where)

The library is hosted at [Github](https://github.com/chippyash/Authentication-Manager). It is available at [Packagist.org](https://packagist.org/packages/chippyash/authentication-manager)

### Installation

[](#installation)

Install [Composer](https://getcomposer.org/)

#### For production

[](#for-production)

```
    "chippyash/authentication-manager": "~2.0"
```

to your composer.json "requires" section

#### For development

[](#for-development)

Clone this repo, and then run Composer in local repo root to pull in dependencies

```
    git clone git@github.com:chippyash/Authentication-Manager.git AuthMan
    cd AuthMan
    composer install
```

To run the tests:

```
    cd AuthMan
    vendor/bin/phpunit -c test/phpunit.xml test/
```

If you have [Testdox Converter](https://packagist.org/packages/chippyash/testdox-converter)installed you can rebuild the Test Contract by running build.sh on \*nix systems.

Other stuff
-----------

[](#other-stuff)

Check out [ZF4 Packages](http://zf4.biz/packages?utm_source=github&utm_medium=web&utm_campaign=blinks&utm_content=slimdicexample) for more packages

License
-------

[](#license)

This software library is released under the [GNU GPL V3 or later license](http://www.gnu.org/copyleft/gpl.html)

This software library is Copyright (c) 2014-2016, Ashley Kitson, UK

A commercial license is available for this software library, please contact the author. It is normally free to deserving causes, but gets you around the limitation of the GPL license, which does not allow unrestricted inclusion of this code in commercial works.

History
-------

[](#history)

V0... pre releases

V1.0.0 Initial version tagged

V1.0.1 Amends for CI

V1.0.2 Typos in dic example

V1.0.3 Self initialise the manager

V2.0.0 BC Break: change namespace from chippyash\\Authentication to Chippyash\\Authentication

V2.0.1 Add link to packages

V2.0.2 Verify PHP7 compatibility

V2.0.3 Move coverage to codeclimate

V2.0.4 Update travis build script

V2.0.5 update composer - forced by packagist composer.json format change

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~143 days

Recently: every ~176 days

Total

9

Last Release

3012d ago

Major Versions

1.0.3 → 2.0.02016-03-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/198575568597b367c8b285de16d278018c8cf292c6c75c535270135c1eea0561?d=identicon)[chippyash](/maintainers/chippyash)

---

Top Contributors

[![chippyash](https://avatars.githubusercontent.com/u/983560?v=4)](https://github.com/chippyash "chippyash (14 commits)")

---

Tags

Authenticationmanagementdigest

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chippyash-authentication-manager/health.svg)

```
[![Health](https://phpackages.com/badges/chippyash-authentication-manager/health.svg)](https://phpackages.com/packages/chippyash-authentication-manager)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M344](/packages/tymon-jwt-auth)[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.6k136.0M245](/packages/league-oauth2-server)[league/oauth2-client

OAuth 2.0 Client Library

3.8k118.6M1.1k](/packages/league-oauth2-client)[google/auth

Google Auth Library for PHP

1.4k272.7M161](/packages/google-auth)[pragmarx/google2fa

A One Time Password Authentication package, compatible with Google Authenticator.

2.0k82.4M162](/packages/pragmarx-google2fa)[paragonie/sodium_compat

Pure PHP implementation of libsodium; uses the PHP extension if it exists

934131.6M153](/packages/paragonie-sodium-compat)

PHPackages © 2026

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