PHPackages                             laravel-enso/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. laravel-enso/impersonate

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

laravel-enso/impersonate
========================

User impersonation support for Laravel Enso

3.6.4(2mo ago)859.9k↓11.4%55MITPHP

Since Jun 17Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/laravel-enso/impersonate)[ Packagist](https://packagist.org/packages/laravel-enso/impersonate)[ Docs](https://github.com/laravel-enso/impersonate)[ RSS](/packages/laravel-enso-impersonate/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (7)Versions (105)Used By (5)

Impersonate
===========

[](#impersonate)

[![License](https://camo.githubusercontent.com/706f58c3db545381e5b44c00357c31e44c6b043b2a3ec7f5f84a87a332182ce2/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f696d706572736f6e6174652f6c6963656e7365)](LICENSE)[![Stable](https://camo.githubusercontent.com/9a3dbaab61aeaa70b65ecc4f4b29a4a3d5149fc6deba96e3700cae05ad85abb6/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f696d706572736f6e6174652f76657273696f6e)](https://packagist.org/packages/laravel-enso/impersonate)[![Downloads](https://camo.githubusercontent.com/fed41b27788f87f04782b3a56cb8c48fe32044f87cd10cbd9c9c6daad9dbcbe7/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f696d706572736f6e6174652f646f776e6c6f616473)](https://packagist.org/packages/laravel-enso/impersonate)[![PHP](https://camo.githubusercontent.com/da7cf113b588d26fe679dfefe4a15009272ed358ad4e786ad3c78b45faa61d69/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322532422d3737376262342e737667)](composer.json)[![Issues](https://camo.githubusercontent.com/09d4b28fed350cee7c12b9b3b940f39abff8aa4fe1bfbc0747ec11a2970625cd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c61726176656c2d656e736f2f696d706572736f6e6174652e737667)](https://github.com/laravel-enso/impersonate/issues)[![Merge Requests](https://camo.githubusercontent.com/ed16ef9cb2ce7f7bb384e49e927a2779c4bf4088461a485e1ca8d14bbad5fd39/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f6c61726176656c2d656e736f2f696d706572736f6e6174652e737667)](https://github.com/laravel-enso/impersonate/pulls)

Description
-----------

[](#description)

Impersonate adds Enso user impersonation routes, middleware, and frontend boot state.

The package exposes start and stop impersonation endpoints, registers the `impersonate` middleware alias, and publishes an `Impersonating` state provider so the frontend can reflect the current session mode.

It is a focused authentication-adjacent package, not a full access-management system on its own.

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

[](#installation)

Install the package:

```
composer require laravel-enso/impersonate
```

Run the package migrations:

```
php artisan migrate
```

Features
--------

[](#features)

- Start and stop impersonation endpoints.
- Dedicated impersonation middleware alias.
- Frontend state provider for current impersonation status.
- Authorization provider wiring through the package service providers.

Usage
-----

[](#usage)

The package mounts:

```
route('core.impersonate.start', ['user' => $user]);
route('core.impersonate.stop');
```

API
---

[](#api)

### HTTP routes

[](#http-routes)

- `GET api/core/impersonate/{user}`
- `GET api/core/impersonate/stop`

### Middleware

[](#middleware)

- `impersonate`

Depends On
----------

[](#depends-on)

Required Enso packages:

- [`laravel-enso/core`](https://docs.laravel-enso.com/backend/core.html) [↗](https://github.com/laravel-enso/core)
- [`laravel-enso/dynamic-methods`](https://docs.laravel-enso.com/backend/dynamic-methods.html) [↗](https://github.com/laravel-enso/dynamic-methods)
- [`laravel-enso/migrator`](https://docs.laravel-enso.com/backend/migrator.html) [↗](https://github.com/laravel-enso/migrator)
- [`laravel-enso/users`](https://docs.laravel-enso.com/backend/users.html) [↗](https://github.com/laravel-enso/users)

Contributions
-------------

[](#contributions)

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

###  Health Score

60

—

FairBetter than 98% of packages

Maintenance86

Actively maintained with recent releases

Popularity36

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 68.4% 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 ~34 days

Recently: every ~3 days

Total

96

Last Release

73d ago

Major Versions

1.3.1 → 2.0.02017-09-26

1.3.2 → 2.1.02017-11-23

1.3.3 → 2.1.52018-03-05

2.5.3 → 3.0.02020-06-23

PHP version history (2 changes)1.1.0PHP &gt;=5.6.4

1.1.6PHP &gt;=7.1.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16073274?v=4)[Adrian Ocneanu](/maintainers/aocneanu)[@aocneanu](https://github.com/aocneanu)

---

Top Contributors

[![aocneanu](https://avatars.githubusercontent.com/u/16073274?v=4)](https://github.com/aocneanu "aocneanu (117 commits)")[![gandesc](https://avatars.githubusercontent.com/u/14071925?v=4)](https://github.com/gandesc "gandesc (27 commits)")[![raftx24](https://avatars.githubusercontent.com/u/10864136?v=4)](https://github.com/raftx24 "raftx24 (9 commits)")[![vmcvlad](https://avatars.githubusercontent.com/u/37445394?v=4)](https://github.com/vmcvlad "vmcvlad (6 commits)")[![AbdullahiAbdulkabir](https://avatars.githubusercontent.com/u/33360580?v=4)](https://github.com/AbdullahiAbdulkabir "AbdullahiAbdulkabir (4 commits)")[![DevIonut](https://avatars.githubusercontent.com/u/19207797?v=4)](https://github.com/DevIonut "DevIonut (3 commits)")[![GITmanuela](https://avatars.githubusercontent.com/u/44998004?v=4)](https://github.com/GITmanuela "GITmanuela (2 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")

---

Tags

impersonateimpersonationlaravellaravel-ensolaravel-impersonatelaravel-packagemiddlewareuser-impersonateimpersonatelaravel-ensoimpersonate-users

### Embed Badge

![Health badge](/badges/laravel-enso-impersonate/health.svg)

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

###  Alternatives

[laravel-enso/permissions

Permission management for Laravel Enso

1244.2k52](/packages/laravel-enso-permissions)[laravel-enso/localisation

Language and translation management for Laravel Enso

1362.8k11](/packages/laravel-enso-localisation)[laravel-enso/roles

Role management for Laravel Enso

1044.9k32](/packages/laravel-enso-roles)[laravel-enso/data-import

Excel Importer dependency for Laravel Enso

2044.0k6](/packages/laravel-enso-data-import)[laravel-enso/core

The backend shell of a Laravel Enso application

3465.3k206](/packages/laravel-enso-core)[laravel-enso/tutorials

Tutorial management backend for Laravel Enso

1140.7k](/packages/laravel-enso-tutorials)

PHPackages © 2026

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