PHPackages                             itinance/slim-basic-auth-pass-through - 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. itinance/slim-basic-auth-pass-through

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

itinance/slim-basic-auth-pass-through
=====================================

An extension on top of slim-basic-auth, that basically passes through any auth data to the request

1.1.3(7y ago)0311MITPHPPHP ^7.1

Since Apr 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/itinance/slim-basic-auth-pass-through)[ Packagist](https://packagist.org/packages/itinance/slim-basic-auth-pass-through)[ RSS](/packages/itinance-slim-basic-auth-pass-through/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Pass Through Basic Authentication
=================================

[](#pass-through-basic-authentication)

A Decorator for HttpBasicAuthentication that passes through any user with password and make it available to the controller (e.g. to be reused for Proxy-API's).

It is based on [HttpBasicAuthentication](https://github.com/tuupola/slim-basic-auth). Any parameters, that the constructor of HttpBasicAuthentication excepts, can be passed to PassThroughHttpBasicAuthentication also.

Example:
--------

[](#example)

```
use itinance\Middleware\PassThroughHttpBasicAuthentication

$app = new \Slim\App($config);

$app->add(new PassThroughHttpBasicAuthentication([
    "realm" => "Protected",
]));

// Define app routes
$app->post('/soapProxy/{methodName}', function (\Slim\Http\Request $request, \Slim\Http\Response $response, $args) {

    $user = $params['PHP_AUTH_USER'];
    $pass = $params['PHP_AUTH_PW'];

    // Proxy-Call to another API with Username and Password happens here
    // ...proxyCall($user, $pass, ...)
});

// Run app
$app->run();

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

4

Last Release

2644d ago

Major Versions

0.0.1 → 1.0.02019-04-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/4bdfaccd9eaf060eef8c7270c5dc5da7a255ee7f7393da0640847074bfcb96c5?d=identicon)[itinance](/maintainers/itinance)

---

Top Contributors

[![itinance](https://avatars.githubusercontent.com/u/1758597?v=4)](https://github.com/itinance "itinance (5 commits)")

### Embed Badge

![Health badge](/badges/itinance-slim-basic-auth-pass-through/health.svg)

```
[![Health](https://phpackages.com/badges/itinance-slim-basic-auth-pass-through/health.svg)](https://phpackages.com/packages/itinance-slim-basic-auth-pass-through)
```

###  Alternatives

[oat-sa/tao-core

TAO core extension

66143.7k116](/packages/oat-sa-tao-core)[egroupware/openid

EGroupware OpenID Connect / OAuth2 server

1227.4k3](/packages/egroupware-openid)[duxweb/dux-lite

The lightweight framework based on slim php

161.0k9](/packages/duxweb-dux-lite)[lucatacconi/crunz-ui

User interface for lavary/crunz. Integrate Crunz library and funtions: Tabular, monthly or weekly interface to view the scheduled and executed tasks. Quick display of the execution result of the tasks that have been executed (Indicator icons easily show the result). Upload, download, edit or delete tasks. Forced run of the task, even outside the scheduled time with eventual display of the log once the execution is completed. It can be used with integrated Crunz or with a version of Crunz already installed on the system

151.5k](/packages/lucatacconi-crunz-ui)

PHPackages © 2026

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