PHPackages                             sunnysideup/basic-auth-better - 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. sunnysideup/basic-auth-better

ActiveSilverstripe-vendormodule[Authentication &amp; Authorization](/categories/authentication)

sunnysideup/basic-auth-better
=============================

Adds basic auth to your Silverstripe website the way it was intended (not just for pages, also for files).

5.3.2(2mo ago)0625↓50%11BSD-3-ClausePHP

Since Jan 7Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/sunnysideup/silverstripe-basic-auth-better)[ Packagist](https://packagist.org/packages/sunnysideup/basic-auth-better)[ RSS](/packages/sunnysideup-basic-auth-better/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (16)Versions (20)Used By (1)

Basic Auth Better and more Secure
=================================

[](#basic-auth-better-and-more-secure)

[![Build Status](https://camo.githubusercontent.com/d1c380da61b75023051ccf9fd2249757014468ab4141b6ab3955f97326973bd3/68747470733a2f2f7472617669732d63692e6f72672f73756e6e797369646575702f73696c7665727374726970652d62617369632d617574682d6265747465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sunnysideup/silverstripe-basic-auth-better)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/74e39b7670ac3e47d6c430d0ecb3d06d28a261128bc5bae1fac51752f8d92e54/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73756e6e797369646575702f73696c7665727374726970652d62617369632d617574682d6265747465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sunnysideup/silverstripe-basic-auth-better/?branch=master)[![codecov.io](https://camo.githubusercontent.com/9aac4661cbbdad876d19aa40f43e46894298964d3e4b8f959c76494bdc02a53a/68747470733a2f2f636f6465636f762e696f2f6769746875622f73756e6e797369646575702f73696c7665727374726970652d62617369632d617574682d6265747465722f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/sunnysideup/silverstripe-basic-auth-better?branch=master)

[![Latest Stable Version](https://camo.githubusercontent.com/5889c1a211618801819f524a4fc23c7e5a8321be5684b41b09721a2a20319e26/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f62617369632d617574682d6265747465722f76657273696f6e)](https://packagist.org/packages/sunnysideup/basic-auth-better)[![License](https://camo.githubusercontent.com/f8d1594450d3bd776b28329f554277a13386bf47da759137663d65423fdf4b98/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f62617369632d617574682d6265747465722f6c6963656e7365)](https://packagist.org/packages/sunnysideup/basic-auth-better)[![Monthly Downloads](https://camo.githubusercontent.com/621bd496ac7e1e5030d082864fb32a25643c80a76aaa025bdf807ad50d335ea3/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f62617369632d617574682d6265747465722f642f6d6f6e74686c79)](https://packagist.org/packages/sunnysideup/basic-auth-better)

Documentation
-------------

[](#documentation)

- [Developer Docs](docs/en/INDEX.md)
- [User Guide](docs/en/userguide.md)
- [API Docs](http://docs.ssmods.com/sunnysideup/basic-auth-better/classes.xhtml)

Requirements
------------

[](#requirements)

See [composer.json](composer.json) for details.

### Suggested modules

[](#suggested-modules)

See [composer.json](composer.json) for details.

Installation
------------

[](#installation)

```
composer require sunnysideup/basic-auth-better
```

### Configuration

[](#configuration)

In the `_config` folder you will find the `basic-auth-better.yml.example`file that shows options for the configuration of this module.

We recommend that you:

1. copy these `basic-auth-better.yml.example` files into your `app/_config` folder (where available - otherwise search for `private static $` in the module to see what can be configured)
2. remove the .example extension,
3. delete the lines you do not care about, and
4. adjust the configurations that you would like to use.

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

[](#contributing)

We welcome any contributions. See [CONTRIBUTING.md](CONTRIBUTING.md) for more details.

Paid assistance
---------------

[](#paid-assistance)

You can pay us to create an improved / adapted version of this module for your own projects. Please contact us if you like to find out more: [www.sunnysideup.co.nz](https://www.sunnysideup.co.nz). For example, we can write tests for this module.

Author
------

[](#author)

Sunny Side Up Ltd.

Looking for Silverstripe Modules?
---------------------------------

[](#looking-for-silverstripe-modules)

To find other modules, please visit [ssmods.com](https://ssmods.com/).

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance87

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.7% 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 ~23 days

Recently: every ~8 days

Total

19

Last Release

72d ago

Major Versions

1.0.0 → 2.0.02025-01-08

2.0.8 → 3.0.02026-01-28

3.0.0 → 4.0.02026-01-29

4.0.0 → 5.0.02026-01-29

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/167154?v=4)[Sunny Side Up](/maintainers/sunnysideup)[@sunnysideup](https://github.com/sunnysideup)

---

Top Contributors

[![sunnysideup](https://avatars.githubusercontent.com/u/167154?v=4)](https://github.com/sunnysideup "sunnysideup (26 commits)")[![S-GrabhamMadden](https://avatars.githubusercontent.com/u/27248899?v=4)](https://github.com/S-GrabhamMadden "S-GrabhamMadden (3 commits)")

---

Tags

securityAuthenticationloginassetsstagingstagebasic authlog-inPre-ProductionTest Site

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sunnysideup-basic-auth-better/health.svg)

```
[![Health](https://phpackages.com/badges/sunnysideup-basic-auth-better/health.svg)](https://phpackages.com/packages/sunnysideup-basic-auth-better)
```

###  Alternatives

[delight-im/auth

Authentication for PHP. Simple, lightweight and secure.

1.3k135.7k20](/packages/delight-im-auth)[jmikola/auto-login

Facilitates automatic login via a single token for Symfony's Security component.

100307.6k2](/packages/jmikola-auto-login)[jmikola/auto-login-bundle

Authenticate users in your Symfony app via a single query parameter (e.g. email and newsletter links).

84323.6k](/packages/jmikola-auto-login-bundle)[silverstripe/mfa

Enable multi-factor authentication with fallback codes

10346.1k8](/packages/silverstripe-mfa)[alajusticia/laravel-logins

Session management in Laravel apps, user notifications on new access, support for multiple separate remember tokens, IP geolocation, User-Agent parser

2011.0k](/packages/alajusticia-laravel-logins)

PHPackages © 2026

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