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

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

rde/auth-basic
==============

簡單的 Http Basic 驗證

v1.1.0(10y ago)1108MITPHPPHP &gt;=5.3.3

Since Jun 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/colin1124x/auth-basic)[ Packagist](https://packagist.org/packages/rde/auth-basic)[ RSS](/packages/rde-auth-basic/feed)WikiDiscussions master Synced 1mo ago

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

rde/auth-basic
==============

[](#rdeauth-basic)

[![Build Status](https://camo.githubusercontent.com/6c31ae8345c954c7eb94f0adb671c8db7d7bd35f496d2b6712cbd1b130403def/68747470733a2f2f7472617669732d63692e6f72672f636f6c696e6465762f617574682d62617369632e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/colindev/auth-basic)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/abf98b051f0276040cefe9fd8efe27a4dba2a14857525f9e831b364f3870c5ab/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636f6c696e6465762f617574682d62617369632f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/colindev/auth-basic/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/bdb7a8dc9499e7da5eb66394a33ea5ebfc3b36857e271e6ac1ba823e7cba1c89/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636f6c696e6465762f617574682d62617369632f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/colindev/auth-basic/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/fb9d357a261a41a5974d59198e957b663f00a3486f51ffd54fcb093647621cef/68747470733a2f2f706f7365722e707567782e6f72672f7264652f617574682d62617369632f762f737461626c65)](https://packagist.org/packages/rde/auth-basic)[![Total Downloads](https://camo.githubusercontent.com/81ed6d51aed830f84f18ca4ac8002cce9c9af6b21973332308e6e3774bb79b2f/68747470733a2f2f706f7365722e707567782e6f72672f7264652f617574682d62617369632f646f776e6c6f616473)](https://packagist.org/packages/rde/auth-basic)[![Latest Unstable Version](https://camo.githubusercontent.com/75dffa5293fd5c5d9f324482aaf2dbe88a9a0da97fcb3a0ff7b19f552ad236a7/68747470733a2f2f706f7365722e707567782e6f72672f7264652f617574682d62617369632f762f756e737461626c65)](https://packagist.org/packages/rde/auth-basic)[![License](https://camo.githubusercontent.com/57436a0d7040387d47b94ff638ece3102bd283c8026f936212e3d9e98ef1fca5/68747470733a2f2f706f7365722e707567782e6f72672f7264652f617574682d62617369632f6c6963656e7365)](https://packagist.org/packages/rde/auth-basic)[![SensioLabsInsight](https://camo.githubusercontent.com/c6baead490fc4d8eb172fb92085aa02d622cb0b9202498ed84c9b7ba17f2b277/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f33633064653363342d616332632d343036622d626132642d6633373462346437366364332f6d696e692e706e67)](https://insight.sensiolabs.com/projects/3c0de3c4-ac2c-406b-ba2d-f374b4d76cd3)

```
// 建構一個 basic 驗證物件

$basic = new Rde\Auth\Basic(array(
    'user_name' => 'encode_password', // 請使用 password_hash
));

// 登入判斷

$basic->isAuthorized() or $basic->challenge();
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

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 ~159 days

Total

2

Last Release

3842d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22b0425a5b48108d5aa970a9f115f73358b8257a578c0974677cc2587549196b?d=identicon)[colindev](/maintainers/colindev)

---

Top Contributors

[![colindev](https://avatars.githubusercontent.com/u/1317798?v=4)](https://github.com/colindev "colindev (20 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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