PHPackages                             phramework/basic-authentication - 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. phramework/basic-authentication

ActiveLibrary

phramework/basic-authentication
===============================

Basic authentication implementation for Phramework

0.0.0(10y ago)116.9kApache-2.0PHPPHP &gt;=5.6CI failing

Since Nov 28Pushed 6y ago3 watchersCompare

[ Source](https://github.com/phramework/basic-authentication)[ Packagist](https://packagist.org/packages/phramework/basic-authentication)[ Docs](https://phramework.github.io/)[ RSS](/packages/phramework-basic-authentication/feed)WikiDiscussions master Synced 2mo ago

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

Basic authentication
====================

[](#basic-authentication)

Basic authentication implementation for phramework

[![Build Status](https://camo.githubusercontent.com/809d34a4dcb570057ec4581390572e9228b351e2796be0807c144fb01486fc30/68747470733a2f2f7472617669732d63692e6f72672f706872616d65776f726b2f62617369632d61757468656e7469636174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/phramework/basic-authentication)

Usage
-----

[](#usage)

Require package

```
composer require phramework/basic-authentication

```

```
//Set authentication class
\Phramework\Authentication\Manager::register(
    \Phramework\Authentication\BasicAuthentication\BasicAuthentication::class
);

//Set method to fetch user object, including password attribute
\Phramework\Authentication\Manager::setUserGetByEmailMethod(
    [\MyApp\API\Models\User::class, 'getByEmailWithPassword']
);

\Phramework\Authentication\Manager::setAttributes(
    ['user_type', 'email']
);
```

Install dependencies
--------------------

[](#install-dependencies)

```
composer update
```

Test and lint code
------------------

[](#test-and-lint-code)

```
composer lint
composer test
```

License
=======

[](#license)

Copyright 2015 Xenofon Spafaridis

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

```
http://www.apache.org/licenses/LICENSE-2.0

```

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

3823d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/432379?v=4)[Xenofon Spafaridis](/maintainers/nohponex)[@nohponex](https://github.com/nohponex)

---

Top Contributors

[![nohponex](https://avatars.githubusercontent.com/u/432379?v=4)](https://github.com/nohponex "nohponex (14 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/phramework-basic-authentication/health.svg)

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

PHPackages © 2026

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