PHPackages                             matthewbdaly/laravel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. matthewbdaly/laravel-impersonator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

matthewbdaly/laravel-impersonator
=================================

Impersonate other users to assist in resolving issues

0.0.1(8y ago)016MITPHP

Since Nov 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/matthewbdaly/laravel-impersonator)[ Packagist](https://packagist.org/packages/matthewbdaly/laravel-impersonator)[ RSS](/packages/matthewbdaly-laravel-impersonator/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

laravel-impersonator
====================

[](#laravel-impersonator)

[![Build Status](https://camo.githubusercontent.com/0257557bb4c1ae29af6f4ec1279db1bbe6c871e8c8949c7d9d5a853752a08cbb/68747470733a2f2f7472617669732d63692e6f72672f6d6174746865776264616c792f6c61726176656c2d696d706572736f6e61746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/matthewbdaly/laravel-impersonator)[![Coverage Status](https://camo.githubusercontent.com/d729818e9cf16c08740af610cd3a50c9d6c6e10337a3cbfc6015cdd40a6abe36/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d6174746865776264616c792f6c61726176656c2d696d706572736f6e61746f722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/matthewbdaly/laravel-impersonator?branch=master)

Impersonate other users to assist in resolving issues

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

[](#installation)

Run the following command to install the package:

```
composer require matthewbdaly/laravel-impersonator
```

Then just include this in your `app/Http/Kernel.php` in the appropriate place where you want to import the middleware:

```
\Matthewbdaly\LaravelImpersonator\Http\Middleware\Impersonator::class
```

You can apply it globally, or only to specific routes as you wish. You will also need to add the trait `Matthewbdaly\LaravelImpersonator\Eloquent\Traits\CanImpersonate` to your user model to add these methods:

- `startImpersonating($id)` - start impersonating user `$id`
- `stopImpersonating()` - stop impersonating
- `isImpersonating()` - Is user impersonating or not?

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3098d ago

### Community

Maintainers

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

---

Top Contributors

[![matthewbdaly](https://avatars.githubusercontent.com/u/450801?v=4)](https://github.com/matthewbdaly "matthewbdaly (22 commits)")

---

Tags

impersonatorlaravellaravel-5-packagephplaravelimpersonateimpersonator

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/matthewbdaly-laravel-impersonator/health.svg)

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

###  Alternatives

[highideas/laravel-users-online

This package will provide an online users management.

203113.2k1](/packages/highideas-laravel-users-online)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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