PHPackages                             bradietilley/laravel-impersonation - 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. bradietilley/laravel-impersonation

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

bradietilley/laravel-impersonation
==================================

Session-based user impersonation for Laravel.

v0.2.0(today)00MITPHPPHP ^8.3CI passing

Since Oct 31Pushed today1 watchersCompare

[ Source](https://github.com/bradietilley/laravel-impersonation)[ Packagist](https://packagist.org/packages/bradietilley/laravel-impersonation)[ Docs](https://github.com/bradietilley/laravel-impersonation)[ RSS](/packages/bradietilley-laravel-impersonation/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Impersonation
=============

[](#impersonation)

Session-based user impersonation for Laravel, with optional recursive (nested) impersonation.

[![Static Analysis](https://github.com/bradietilley/laravel-impersonation/actions/workflows/static.yml/badge.svg)](https://github.com/bradietilley/laravel-impersonation/actions/workflows/static.yml/badge.svg)[![Tests](https://github.com/bradietilley/laravel-impersonation/actions/workflows/tests.yml/badge.svg)](https://github.com/bradietilley/laravel-impersonation/actions/workflows/tests.yml/badge.svg)[![Laravel Version](https://camo.githubusercontent.com/83c7a26073579937b1d321ce410dee32222ce5479f603100455d0034e8a1b1cb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c25323056657273696f6e2d31332e782d463933323243)](https://camo.githubusercontent.com/83c7a26073579937b1d321ce410dee32222ce5479f603100455d0034e8a1b1cb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c25323056657273696f6e2d31332e782d463933323243)[![PHP Version](https://camo.githubusercontent.com/0742096904180c78a3bf41632578254b265ae67e07f02a3832a3dc0224fd7c29/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50485025323056657273696f6e2d382e332d344635423933)](https://camo.githubusercontent.com/0742096904180c78a3bf41632578254b265ae67e07f02a3832a3dc0224fd7c29/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50485025323056657273696f6e2d382e332d344635423933)

Documentation
-------------

[](#documentation)

Full documentation is available at [bradietilley.dev/laravel-impersonation](https://bradietilley.dev/laravel-impersonation).

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

[](#installation)

```
composer require bradietilley/laravel-impersonation
```

```
use BradieTilley\Impersonation\Contracts\Impersonateable;
use BradieTilley\Impersonation\ImpersonationManager;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable implements Impersonateable
{
    //
}

ImpersonationManager::configure(
    authorize: fn ($admin, $user) => $admin->isAdmin() && ! $user->isAdmin(),
);

ImpersonationManager::make()->impersonate($user);
ImpersonationManager::make()->stopImpersonating();
```

Author
------

[](#author)

- [Bradie Tilley](https://github.com/bradietilley)

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Every ~629 days

Total

2

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44430471?v=4)[Bradie Tilley](/maintainers/bradietilley)[@bradietilley](https://github.com/bradietilley)

---

Top Contributors

[![bradietilley](https://avatars.githubusercontent.com/u/44430471?v=4)](https://github.com/bradietilley "bradietilley (26 commits)")

---

Tags

laravelauthuserimpersonation

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bradietilley-laravel-impersonation/health.svg)

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

###  Alternatives

[lab404/laravel-impersonate

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

2.3k18.6M66](/packages/lab404-laravel-impersonate)[rickycezar/laravel-jwt-impersonate

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

25125.2k](/packages/rickycezar-laravel-jwt-impersonate)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.8k](/packages/rawilk-profile-filament-plugin)[hapidjus/laravel-impersonate-ui

UI for 404labfr/laravel-impersonate

371.6k](/packages/hapidjus-laravel-impersonate-ui)[aurorawebsoftware/aauth

Laravel Aauth

412.1k1](/packages/aurorawebsoftware-aauth)

PHPackages © 2026

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