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

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

devmi/impersonate
=================

Flexible impersonating laravel package.

16PHP

Since Mar 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/AdamKeen/impersonate)[ Packagist](https://packagist.org/packages/devmi/impersonate)[ RSS](/packages/devmi-impersonate/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Impersonate package for Laravel.
================================

[](#impersonate-package-for-laravel)

Flexible impersonating Laravel package.

stage 1
-------

[](#stage-1)

first of all pull the package through Composer.

```
composer require devmi/impersonate
```

Next, if you're using older Laravel version than 5.5, include the service provider within your `config/app.php` file. (otherwise ignore this step)

```
'providers' => [
    Devmi\Impersonate\ImpersonateServiceProvider::class,
];
```

Stage 2
-------

[](#stage-2)

Add the middleware to `App\Http\Middleware\Kernel.php`

```
protected $middlewareGroups = [
    ...
    \Devmi\Impersonate\Middleware\Impersonate::class,
]
```

Stage 3
-------

[](#stage-3)

Public the configuration so you can custom this package depending on your needs.

```
php artisan vendor:publich --tag=impersonate

```

The file generated would be found under `config/impersonate.php`

Usage
=====

[](#usage)

You can visit `http://your-domain/admin/impersonate`.

Enter the user email address you want to impersonate and you're done.

### Note

[](#note)

> `@impersonating` blade directive is already provided so you can display `stop impersonating` button to quit the impersonation.

> Hit `route('impersonate.destroy')` to destroy your impersonation session.

That's it.

Contributing
============

[](#contributing)

PR's are very welcome, Thanks.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10816975?v=4)[Miloudi Mohamed](/maintainers/MiloudiMohamed)[@MiloudiMohamed](https://github.com/MiloudiMohamed)

---

Top Contributors

[![MiloudiMohamed](https://avatars.githubusercontent.com/u/10816975?v=4)](https://github.com/MiloudiMohamed "MiloudiMohamed (2 commits)")

---

Tags

impersonationlaravel

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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