PHPackages                             tylerjuniorcollege/slim-user-middleware - 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. tylerjuniorcollege/slim-user-middleware

AbandonedArchivedLibrary

tylerjuniorcollege/slim-user-middleware
=======================================

Simple, basic, User Middleware for Slim Framework. Includes route login middleware.

2122PHP

Since Jan 6Pushed 10y ago2 watchersCompare

[ Source](https://github.com/tylerjuniorcollege/slim-user-middleware)[ Packagist](https://packagist.org/packages/tylerjuniorcollege/slim-user-middleware)[ RSS](/packages/tylerjuniorcollege-slim-user-middleware/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Simple User Middleware for Slim Framework
=========================================

[](#simple-user-middleware-for-slim-framework)

This package is a no-nonsense, simple User/Login Middleware for Slim Framework 2.x., without the requirements for any thing like user permissions or roles.

This package consists of Two Slim Middleware objects, and a Route Middleware function for pages that require being logged in.

Setup
=====

[](#setup)

After including the package in to the "require" portion of the composer.json, you need to set the middleware using the `add()` function in the Slim Object.

```
	$app->add(new TJC\User\UserMiddleware());
	$app->add(new TJC\User\LoginMiddleware());
```

The order in which you add them really doesn't matter. The User Middleware's action all occur before the main application is called, and the Login Middleware actions write a before dispatch hook.

Dependency Injection Notes
--------------------------

[](#dependency-injection-notes)

Currently, `user` and `login` are being used by the package for keeping the user logged in and kicking the user out if they are not logged in. You can change these dependency variable names by setting the `tjc.middleware.user` and `tjc.middleware.login` in the App config during instanciation.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/67160bfec122897dbd4b1e6c3983a5392501628989d41e34a319abdeb1af88d9?d=identicon)[duanejeffers](/maintainers/duanejeffers)

---

Top Contributors

[![duanejeffers](https://avatars.githubusercontent.com/u/684454?v=4)](https://github.com/duanejeffers "duanejeffers (9 commits)")

### Embed Badge

![Health badge](/badges/tylerjuniorcollege-slim-user-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/tylerjuniorcollege-slim-user-middleware/health.svg)](https://phpackages.com/packages/tylerjuniorcollege-slim-user-middleware)
```

PHPackages © 2026

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