PHPackages                             wyrihaximus/psr-15-etc-passwd - 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. wyrihaximus/psr-15-etc-passwd

ActiveLibrary

wyrihaximus/psr-15-etc-passwd
=============================

PSR-15 middleware that pretends to expose /etc/passwd and /etc/shadow

2362[2 PRs](https://github.com/WyriHaximus/php-psr-15-etc-passwd/pulls)PHPCI failing

Since Nov 13Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/WyriHaximus/php-psr-15-etc-passwd)[ Packagist](https://packagist.org/packages/wyrihaximus/psr-15-etc-passwd)[ RSS](/packages/wyrihaximus-psr-15-etc-passwd/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (3)Used By (0)

[PSR-15](http://www.php-fig.org/psr/psr-15/) middleware that pretends to expose /etc/passwd and /etc/shadow
===========================================================================================================

[](#psr-15-middleware-that-pretends-to-expose-etcpasswd-and-etcshadow)

[![Linux Build Status](https://camo.githubusercontent.com/64d6735188b68dd1be0bbd5947f2f01b32711144e0bd64537e8ed44e4af0d7be/68747470733a2f2f7472617669732d63692e6f72672f57797269486178696d75732f7068702d7073722d31352d6574632d7061737377642e706e67)](https://travis-ci.org/WyriHaximus/php-psr-15-etc-passwd)[![Latest Stable Version](https://camo.githubusercontent.com/ceb10a2e1a3da587e41a2a53aa9e4d2b62e5165f7b796d9ea5b75b60aa3d2d9e/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f7073722d31352d6574632d7061737377642f762f737461626c652e706e67)](https://packagist.org/packages/WyriHaximus/psr-15-etc-passwd)[![Total Downloads](https://camo.githubusercontent.com/6efeb127daeac9845a9d3e00d4b13476d32951aa36f52d9d788e8e35aa166715/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f7073722d31352d6574632d7061737377642f646f776e6c6f6164732e706e67)](https://packagist.org/packages/WyriHaximus/psr-15-etc-passwd/stats)[![Code Coverage](https://camo.githubusercontent.com/4c3ec2cc9f920fc1a649dd6cf5e6343afe7ac46bc390e48e35111355bdf3d4ae/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57797269486178696d75732f7068702d7073722d31352d6574632d7061737377642f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/WyriHaximus/php-psr-15-etc-passwd/?branch=master)[![License](https://camo.githubusercontent.com/92f232897a6aecdda9c72e9a311ca3321b6d89b4967901de9552c6fab2977489/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f7073722d31352d6574632d7061737377642f6c6963656e73652e706e67)](https://packagist.org/packages/wyrihaximus/psr-15-etc-passwd)[![PHP 7 ready](https://camo.githubusercontent.com/9990234135b7740d3ab0a5959c02463aa312402e839255da7bb25db8b92e450b/687474703a2f2f7068703772656164792e74696d6573706c696e7465722e63682f57797269486178696d75732f7068702d7073722d31352d6574632d7061737377642f62616467652e737667)](https://travis-ci.org/WyriHaximus/php-psr-15-etc-passwd)

### Installation

[](#installation)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `^`.

```
composer require wyrihaximus/psr-15-etc-passwd

```

Usage
-----

[](#usage)

```
$middleware = new EtcPasswdMiddleware([
    'username' => 'password', // Do not use real passwords here for the sake of the security of your system
    'another_username' => 'another_password',
]);
```

Inspired by
-----------

[](#inspired-by)

[`Reddit`](https://www.reddit.com/etc/passwd)

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

Copyright 2017 [Cees-Jan Kiewiet](http://wyrihaximus.net/)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance56

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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://avatars.githubusercontent.com/u/147145?v=4)[Cees-Jan Kiewiet](/maintainers/WyriHaximus)[@WyriHaximus](https://github.com/WyriHaximus)

---

Top Contributors

[![WyriHaximus](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/WyriHaximus "WyriHaximus (21 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (18 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (10 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (5 commits)")

---

Tags

hacktoberfest

### Embed Badge

![Health badge](/badges/wyrihaximus-psr-15-etc-passwd/health.svg)

```
[![Health](https://phpackages.com/badges/wyrihaximus-psr-15-etc-passwd/health.svg)](https://phpackages.com/packages/wyrihaximus-psr-15-etc-passwd)
```

PHPackages © 2026

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