PHPackages                             circli/api-auth-extension - 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. circli/api-auth-extension

ActiveCircli-extension[Authentication &amp; Authorization](/categories/authentication)

circli/api-auth-extension
=========================

1.0.0(6y ago)03.5k↓50%MITPHPCI failing

Since Dec 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/circli/api-auth-extension)[ Packagist](https://packagist.org/packages/circli/api-auth-extension)[ RSS](/packages/circli-api-auth-extension/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (8)Versions (3)Used By (0)

Api Authentication Extension
============================

[](#api-authentication-extension)

Extension to help with basic api authentication

The package include 3 different authentication providers

1. [BasicAuth](#BasicAuth)
2. [AccessKey](#AccessKey)
3. Token

BasicAuth
---------

[](#basicauth)

### Usage

[](#usage)

```
use Circli\ApiAuth\Repository\ArrayBasicAuthRepository;
use Circli\ApiAuth\Provider\BasicAuthProvider;
use Circli\ApiAuth\Middleware\ApiAuthenticationMiddleware;

$authRepository = new ArrayBasicAuthRepository(['admin' => 'password']);

$middleware = new ApiAuthenticationMiddleware(new BasicAuthProvider($authRepository));
```

AccessKey
---------

[](#accesskey)

### Usage

[](#usage-1)

```
use Circli\ApiAuth\Repository\AccessKeyRepository;
use Circli\ApiAuth\Provider\AccessKeyProvider;
use Circli\ApiAuth\Middleware\ApiAuthenticationMiddleware;

$repository = new YourImplementationOfAccessKeyRepository();

$middleware = new ApiAuthenticationMiddleware(new AccessKeyProvider($repository));
```

Token
-----

[](#token)

### Usage

[](#usage-2)

```
use Circli\ApiAuth\Repository\AuthTokenRepository;
use Circli\ApiAuth\Provider\AuthTokenProvider;
use Circli\ApiAuth\Middleware\ApiAuthenticationMiddleware;

$repository = new YourImplementationOfAuthTokenRepository();

$middleware = new ApiAuthenticationMiddleware(new AuthTokenProvider($repository));
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2392d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce9d40996574fd1f18f69556c872c6eb94e59977c5f0b33c9df541d82fbb3800?d=identicon)[sunkan](/maintainers/sunkan)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/circli-api-auth-extension/health.svg)

```
[![Health](https://phpackages.com/badges/circli-api-auth-extension/health.svg)](https://phpackages.com/packages/circli-api-auth-extension)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k86.9M2.2k](/packages/symfony-symfony)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[moonshine/moonshine

Laravel administration panel

1.3k239.9k75](/packages/moonshine-moonshine)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[thecodingmachine/graphqlite

Write your GraphQL queries in simple to write controllers (using webonyx/graphql-php).

5733.2M40](/packages/thecodingmachine-graphqlite)

PHPackages © 2026

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