PHPackages                             aryehraber/statamic-impersonator - 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. aryehraber/statamic-impersonator

AbandonedArchivedStatamic-addon[Authentication &amp; Authorization](/categories/authentication)

aryehraber/statamic-impersonator
================================

Give Admins the ability to authenticate as any user for easier debugging.

v2.6.0(2y ago)992.6k4MITPHP

Since Mar 31Pushed 2y ago2 watchersCompare

[ Source](https://github.com/aryehraber/statamic-impersonator)[ Packagist](https://packagist.org/packages/aryehraber/statamic-impersonator)[ Docs](https://github.com/aryehraber/statamic-impersonator)[ GitHub Sponsors](https://github.com/aryehraber)[ RSS](/packages/aryehraber-statamic-impersonator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (13)Used By (0)

Note

This addon has been archived since impersonating users was added to Statamic core in [v4.23.0](https://github.com/statamic/cms/releases/tag/v4.23.0)

---

Impersonator
============

[](#impersonator)

**Give Admins the ability to authenticate as any user for easier debugging.**

Installation
------------

[](#installation)

Install the addon via composer:

```
composer require aryehraber/statamic-impersonator

```

Publish the config file (optional):

```
php please vendor:publish --tag=impersonator-config

```

After installation, all Super Admins will see a new Impersonator utility listed under `Tools > Utilities`. Regular CP users can also be given access, but will require the "Impersonator" permission to be activated for their User Role.

Usage
-----

[](#usage)

Simply navigate to `Tools > Utilities > Impersonator`, select the user that you want to authenticate as and click "Go". This will authenticate you as the selected user and automatically redirect you to the CP Dashboard, or the Homepage if the user doesn't have CP access.

You are now free to do what you need as this user to debug or give support regarding an issue.

Once finished, you can easily return back to your own account by clicking the "Back to my account" link:

- **CP**: a link can be found in the sidebar nav.
- **Frontend**: a small icon should appear in the bottom right corner (only if `inject_terminate_link` is set to `true`).

If either of these doesn't work as expected, you should manually log out and log back in as yourself.

### Tags

[](#tags)

`{{ impersonator:active }}`

This tag allows you to check whether the current user is in an active Impersonation session, this can be useful to conditionally show/hide content.

**Examples:**

Show the terminate link to Impersonators only:

```
{{ if {impersonator:active} }}
  Head Back
{{ /if }}
```

Hide sensitive information from Impersonators:

```
{{ unless {impersonator:active} }}
  Personal user info
{{ /unless }}
```

---

`{{ impersonator:terminate }}`

This tag outputs the action URL to terminate the Impersonation session, this can be useful if the `inject_terminate_link` config option has been set to `false`.

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 93.9% 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

Every ~117 days

Recently: every ~141 days

Total

11

Last Release

1061d ago

Major Versions

v1.1.1 → v2.0.02020-08-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/feb8339874c0e210568e851c528efe8f1ed651750c707a9a6a52a7919e6d54af?d=identicon)[aryehraber](/maintainers/aryehraber)

---

Top Contributors

[![aryehraber](https://avatars.githubusercontent.com/u/5065331?v=4)](https://github.com/aryehraber "aryehraber (62 commits)")[![jacksleight](https://avatars.githubusercontent.com/u/126740?v=4)](https://github.com/jacksleight "jacksleight (3 commits)")[![Skullbock](https://avatars.githubusercontent.com/u/1104083?v=4)](https://github.com/Skullbock "Skullbock (1 commits)")

---

Tags

Authenticationstatamicimpersonator

### Embed Badge

![Health badge](/badges/aryehraber-statamic-impersonator/health.svg)

```
[![Health](https://phpackages.com/badges/aryehraber-statamic-impersonator/health.svg)](https://phpackages.com/packages/aryehraber-statamic-impersonator)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.6k136.0M248](/packages/league-oauth2-server)[league/oauth2-client

OAuth 2.0 Client Library

3.8k118.6M1.2k](/packages/league-oauth2-client)[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[pragmarx/google2fa

A One Time Password Authentication package, compatible with Google Authenticator.

2.0k82.4M164](/packages/pragmarx-google2fa)[paragonie/sodium_compat

Pure PHP implementation of libsodium; uses the PHP extension if it exists

934131.6M155](/packages/paragonie-sodium-compat)

PHPackages © 2026

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