PHPackages                             luyadev/luya-module-basicauth - 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. luyadev/luya-module-basicauth

ActiveLuya-module[Authentication &amp; Authorization](/categories/authentication)

luyadev/luya-module-basicauth
=============================

Adds the typical htaccess auth dialog before each request. This module is made as angular does have problems with basic htaccess authentifications in the administration area.

1.1.0(5y ago)047.3k↓33.3%5MITPHPCI failing

Since Dec 12Pushed 3y ago4 watchersCompare

[ Source](https://github.com/luyadev/luya-module-basicauth)[ Packagist](https://packagist.org/packages/luyadev/luya-module-basicauth)[ Docs](http://luya.io)[ RSS](/packages/luyadev-luya-module-basicauth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

BASIC AUTH LUYA MODULE
======================

[](#basic-auth-luya-module)

[![LUYA](https://camo.githubusercontent.com/c30b61934591d3a6fcb8718a93fd61bf840c0abd8a8d49aa0fdd4ab99567bdf4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f776572656425323062792d4c5559412d627269676874677265656e2e737667)](https://luya.io)[![Tests](https://github.com/luyadev/luya-module-basicauth/workflows/Tests/badge.svg)](https://github.com/luyadev/luya-module-basicauth/workflows/Tests/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/64ce2495979ec297aa1c741949b84ba4c30d8cdbbf2051019100d15ba2bd2b31/68747470733a2f2f706f7365722e707567782e6f72672f6c7579616465762f6c7579612d6d6f64756c652d6261736963617574682f646f776e6c6f616473)](https://packagist.org/packages/luyadev/luya-module-basicauth)[![Latest Stable Version](https://camo.githubusercontent.com/18708d0ca9bfcf02636eb725bb66a89d5b47047f5658234b3339c0e08c036ac2/68747470733a2f2f706f7365722e707567782e6f72672f6c7579616465762f6c7579612d6d6f64756c652d6261736963617574682f762f737461626c65)](https://packagist.org/packages/luyadev/luya-module-basicauth)[![Test Coverage](https://camo.githubusercontent.com/8d041d72a5f955c8d78dae54ab6cb83b36d295322db2003494880021468cc6fc/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30343331663031336132623064666639343236352f746573745f636f766572616765)](https://codeclimate.com/github/luyadev/luya-module-basicauth/test_coverage)

Adds the typical htaccess auth dialog before each request. This module is made as angular does have problems with basic htaccess authentifications in the administration area.

Installation &amp; Usage
------------------------

[](#installation--usage)

Add the `luyadev/luya-module-basicauth` package to your composer config:

```
composer require luyadev/luya-module-basicauth
```

Add the module to your configuration in the modules section.

```
'modules' => [
    //...
    'basicauth' => [
        'class' => 'luya\basicauth\Module',
        'password' => '',
    ]
]
```

As the module checks the authentication status on before each request, you have to bootstrap the module inside the bootstrap section of your config:

```
'bootstrap' => [
    'basicauth',
],
```

All frontend requests are now protected with your entered password from the config.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 80.3% 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 ~314 days

Total

4

Last Release

2135d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86184bf08843ed8fcc4aedb2fdecd8a9e832e47e89a7166cebfda529c176f5ce?d=identicon)[nadar](/maintainers/nadar)

---

Top Contributors

[![nadar](https://avatars.githubusercontent.com/u/3417221?v=4)](https://github.com/nadar "nadar (49 commits)")[![TheMaaarc](https://avatars.githubusercontent.com/u/3450438?v=4)](https://github.com/TheMaaarc "TheMaaarc (3 commits)")[![hbugdoll](https://avatars.githubusercontent.com/u/6715827?v=4)](https://github.com/hbugdoll "hbugdoll (2 commits)")[![chemezov](https://avatars.githubusercontent.com/u/2368902?v=4)](https://github.com/chemezov "chemezov (2 commits)")[![martinpetrasch](https://avatars.githubusercontent.com/u/6354795?v=4)](https://github.com/martinpetrasch "martinpetrasch (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![dven84](https://avatars.githubusercontent.com/u/10542161?v=4)](https://github.com/dven84 "dven84 (1 commits)")[![bumbumpaw07](https://avatars.githubusercontent.com/u/7972205?v=4)](https://github.com/bumbumpaw07 "bumbumpaw07 (1 commits)")

---

Tags

authorizationhacktoberfesthtaccessluyaphpauthyii2luyaluya-modulehtaccessbasicauth

### Embed Badge

![Health badge](/badges/luyadev-luya-module-basicauth/health.svg)

```
[![Health](https://phpackages.com/badges/luyadev-luya-module-basicauth/health.svg)](https://phpackages.com/packages/luyadev-luya-module-basicauth)
```

###  Alternatives

[luyadev/luya-bootstrap4

Bootstrap4 Assets and Helper classes like ActiveForm for LUYA and Yii2.

1843.9k3](/packages/luyadev-luya-bootstrap4)[luyadev/luya-module-payment

LUYA Payment allows you to integrate payments in a safe and fast way. The module take care of all the provider required steps (call, create, success, abort, etc.) and provides all the informations for your store.

1012.1k](/packages/luyadev-luya-module-payment)

PHPackages © 2026

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