PHPackages                             fabio286/php-pwauth - 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. fabio286/php-pwauth

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

fabio286/php-pwauth
===================

A pwauth driver in PHP

10PHP

Since Jan 21Pushed 7y agoCompare

[ Source](https://github.com/Fabio286/php-pwauth)[ Packagist](https://packagist.org/packages/fabio286/php-pwauth)[ RSS](/packages/fabio286-php-pwauth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP drivers for PAM authentication
==================================

[](#php-drivers-for-pam-authentication)

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

[](#requirements)

PAM authentication drivers works by passing username and password to the application **Pwauth**, so this application is required.

It's possible to install this application by running `sudo apt-get install pwauth` or via sources.

Pwauth sources available at:

Usage
-----

[](#usage)

Instantiate the `PWAuth` class and invoke the` Authenticate` method, passing it user and password.

```
$pwauth = new PWAuth;
$login = $pwauth->Authenticate('username', 'password');
```

It returns an associative array with user informations.

```
$login['user']    // Username
$login['uid']     // ID
$login['gid']     // Group ID
$login['comment'] // Comment
$login['dir']     // Directory
$login['shell']   // Shell

// GECOS FORMAT FIELDS
$login['name']     // Name
$login['building'] // Buolding
$login['phone']    // Phone
$login['other']    // Other
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c877f4273be32d4c480933b052b1b274bc2edbd2a4f62483aa8ed1458bb9767?d=identicon)[Fabio286](/maintainers/Fabio286)

---

Top Contributors

[![Fabio286](https://avatars.githubusercontent.com/u/31471771?v=4)](https://github.com/Fabio286 "Fabio286 (8 commits)")

---

Tags

pam-authenticationphppwauth

### Embed Badge

![Health badge](/badges/fabio286-php-pwauth/health.svg)

```
[![Health](https://phpackages.com/badges/fabio286-php-pwauth/health.svg)](https://phpackages.com/packages/fabio286-php-pwauth)
```

###  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.2M117](/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)
