PHPackages                             jampire/moonshine-impersonate - 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. jampire/moonshine-impersonate

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

jampire/moonshine-impersonate
=============================

User Impersonation for MoonShine admin panel

v3.0.0(3mo ago)9383↓50%MITPHPPHP ^8.2CI passing

Since May 17Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Jampire/moonshine-impersonate)[ Packagist](https://packagist.org/packages/jampire/moonshine-impersonate)[ Docs](https://github.com/Jampire/moonshine-impersonate)[ RSS](/packages/jampire-moonshine-impersonate/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (20)Used By (0)

 [![build](https://github.com/Jampire/moonshine-impersonate/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/Jampire/moonshine-impersonate/actions/workflows/build.yml "build") [![downloads](https://camo.githubusercontent.com/58932b10c51bc2c944cd334e553d64e27562d9e2bf97a816e598a56089f70d4d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4a616d706972652f6d6f6f6e7368696e652d696d706572736f6e6174653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Jampire/moonshine-impersonate "downloads") [![license](https://camo.githubusercontent.com/a41c818b30d89e608b56846ff20d7c249d4070d9bfb6f358448353b6047d3116/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4a616d706972652f6d6f6f6e7368696e652d696d706572736f6e6174653f7374796c653d666c61742d737175617265)](https://github.com/Jampire/moonshine-impersonate/blob/master/LICENSE "license") [![release](https://camo.githubusercontent.com/9f68c150a635851e28e69d65ea510aa183d962282884f446f5d59ccb27f868b2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f4a616d706972652f6d6f6f6e7368696e652d696d706572736f6e6174653f646973706c61795f6e616d653d74616726736f72743d73656d766572267374796c653d666c61742d737175617265)](https://github.com/Jampire/moonshine-impersonate/releases "release") [![composer](https://camo.githubusercontent.com/6986ef63910cdc392b49df49e330c76a5676ea6a316435041fe000b6279142fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f4a616d706972652f6d6f6f6e7368696e652d696d706572736f6e6174653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Jampire/moonshine-impersonate "php") [![contributors](https://camo.githubusercontent.com/9d226f07d0385d8b0d9841b3eaf2c566114f01b933bb4d55cf6c495399105675/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f4a616d706972652f6d6f6f6e7368696e652d696d706572736f6e6174653f7374796c653d666c61742d737175617265)](https://github.com/Jampire/moonshine-impersonate/graphs/contributors "contributors") [![contributors](https://camo.githubusercontent.com/91c42c04138c5a5891478fd36f9aa0f199617c03c14dd7191989934dafd50c10/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Jampire/moonshine-impersonate/issues "welcome")

User Impersonation for MoonShine admin panel
============================================

[](#user-impersonation-for-moonshine-admin-panel)

Introduction
------------

[](#introduction)

This package provides Impersonation (user switch) capability to [MoonShine](https://getmoonshine.app/) admin panel. User Impersonation allows Administrators to access and operate as if they were logged in as that User. This is handy for many reasons, for example, when you get a bug report or an issue and want to see exactly what the user sees, impersonating them saves lots of time because you can see exactly what they see.

Compatibility
-------------

[](#compatibility)

MoonShineMoonShine ImpersonateCurrently supported&gt;= v1.52 and &lt;= v1.57.4&lt;= v1.2.0no&gt;= v1.58.0&gt;= v1.3.0no&gt;= v2.0&gt;= v2.0no&gt;= v4.0&gt;= v3.0yesInstallation
------------

[](#installation)

Use `composer` to install `MoonShine Impersonate` package:

```
composer require jampire/moonshine-impersonate
```

This package is designed to work in MoonShine only. You first need to install it. Please, read [the documentation](https://getmoonshine.app/en/docs/4.x/installation) on how install and configure MoonShine.

Configuration
-------------

[](#configuration)

This package works out of the box with default configuration. But you can publish `impersonate.php` config file and tweak it to your desire:

```
php artisan vendor:publish --provider="Jampire\MoonshineImpersonate\ImpersonateServiceProvider" --tag=config
```

Usage
-----

[](#usage)

You can find the package documentation [here](https://dzianiskotau.com/projects/moonshine-impersonate/v3/docs/ru/).

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

[](#contributing)

Thank you for considering contributing to `MoonShine Impersonate` project! You can read the contribution guide [here](CONTRIBUTING.md).

Code of Conduct
---------------

[](#code-of-conduct)

Please review and abide by the [Code of Conduct](CODE_OF_CONDUCT.md).

Credits
-------

[](#credits)

- [Dzianis Kotau](https://github.com/Jampire)
- [All Contributors](https://github.com/Jampire/moonshine-impersonate/graphs/contributors)

License
-------

[](#license)

`MoonShine Impersonate` is open-sourced software licensed under the [MIT license](LICENSE).

Other implementations
---------------------

[](#other-implementations)

- [Laravel Nova impersonation mode](https://nova.laravel.com/docs/v5/customization/impersonation#impersonation)
- [Laravel Orchid impersonation mode](https://orchid.software/en/docs/permissions/#user-impersonation)
- [Laravel standalone package](https://laravel-news.com/laravel-impersonate)

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance82

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~62 days

Recently: every ~195 days

Total

17

Last Release

93d ago

Major Versions

v0.1.0 → v1.0.02023-05-22

v1.4.1 → v2.0.02023-12-17

1.x-dev → v2.0.12023-12-22

v2.0.3 → v3.0.02026-02-08

PHP version history (3 changes)v0.0.1PHP ^8.2

v1.4.0PHP ^8.1|^8.2

v2.0.0PHP ^8.1|^8.2|^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f09a0cad147e9ffb0ab22e956810ce39347a4d04600f6c337cd9c52f84edf0b?d=identicon)[Jampire](/maintainers/Jampire)

---

Top Contributors

[![Jampire](https://avatars.githubusercontent.com/u/686954?v=4)](https://github.com/Jampire "Jampire (35 commits)")

---

Tags

authorizationimpersonationlaravelmoonshinepermissionsuser-proxylaravelimpersonationauthorizationpermissionmoonshineuser-proxy

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/jampire-moonshine-impersonate/health.svg)

```
[![Health](https://phpackages.com/badges/jampire-moonshine-impersonate/health.svg)](https://phpackages.com/packages/jampire-moonshine-impersonate)
```

###  Alternatives

[casbin/laravel-authz

An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.

324339.9k4](/packages/casbin-laravel-authz)[efficiently/authority-controller

AuthorityController is an PHP authorization library for Laravel 5 which restricts what resources a given user is allowed to access.

15533.2k](/packages/efficiently-authority-controller)[sametsahindogan/laravel-jwtredis

This package allows JWT-authenticated users to be stored and management in Redis with their roles, permissions, statuses and anything you want.

1221.9k](/packages/sametsahindogan-laravel-jwtredis)[hosseinhezami/laravel-permission-manager

Advanced permission manager for Laravel.

403.3k](/packages/hosseinhezami-laravel-permission-manager)[orchestra/auth

Auth Component for Orchestra Platform

24108.5k3](/packages/orchestra-auth)[codebot/entrust

This package provides a flexible way to add Role-based Permissions to Laravel

1596.6k](/packages/codebot-entrust)

PHPackages © 2026

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