# 404labfr/laravel-impersonate

Laravel Impersonate is a plugin that allows you to authenticate as your users.

Repository: https://github.com/404labfr/laravel-impersonate
Canonical: https://ross.abutalabs.com/products/laravel-impersonate
Homepage: https://marceau.casals.fr
Language: PHP
License Family: other
Topics: laravel-package, impersonate, php, user-management, laravel
Last push: 2026-03-17T15:24:28+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 72, release rhythm 43, longevity 100
- inputs: {"age_days": 3491, "days_push": 169, "days_rel": 169, "gap_med": 223.0, "n_releases_24m": 3}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2340, forks 237 (observed 2026-08-28T04:06:38.631449+00:00)

## What it is
A Laravel package that lets authenticated users (typically admins) impersonate other users of the application with a single method call or route. It provides a trait for user models, route macros, middleware, events, and Blade directives to manage impersonation sessions.

## Use cases
- impersonate a user to debug their account issues
- log in as another user to reproduce a reported bug
- let support staff view the app as a specific customer
- add one-click 'login as user' functionality to an admin panel
- restrict which users can impersonate others with authorization rules
- support multi-guard impersonation for admin and web sessions

## When to choose
- you run a Laravel app and need admin user-impersonation for support or debugging
- you want a battle-tested package with route macros, middleware, and events out of the box
- you need fine-grained control over who can impersonate whom

## When to avoid
- you are not using Laravel or PHP
- you need session-independent token-based impersonation for APIs rather than web sessions
- your security policy forbids admins from accessing user accounts

## Facets
- artifact type: library
- maturity: active
- function: auth, middleware, routing
- domain: web-development, backend, developer-tools
- platform: php
- tags: laravel-package, impersonation, user-management, user-switching, debugging, laravel

## Member repositories
- 404labfr/laravel-impersonate (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:38.631449+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:37:24.056573+00:00, confidence not recorded.
  - readme: https://github.com/404labfr/laravel-impersonate (fetched 2026-08-28T04:06:38.631449+00:00, sha 0a1597ebe2d2)
  - homepage: https://marceau.casals.fr (fetched 2026-08-29T10:17:52.328618+00:00, sha 27466c5346eb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
