PHPackages                             nti/impersonation-bundle - 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. nti/impersonation-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

nti/impersonation-bundle
========================

Symfony NTIImpersonationBundle

v1.1.3(6y ago)11.5k1MITPHP

Since Sep 1Pushed 6y ago6 watchersCompare

[ Source](https://github.com/ntidev/ImpersonationBundle)[ Packagist](https://packagist.org/packages/nti/impersonation-bundle)[ RSS](/packages/nti-impersonation-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (5)Used By (0)

NTIImpersonationBundle
======================

[](#ntiimpersonationbundle)

### Overview

[](#overview)

This bundle lets you change the login to another user without needing the users' password. This is useful when you have a list of users and someone complains that they in particular are having a specific issue. Using this bundle you could change your login to that of the user without asking for the password.

### Installation

[](#installation)

1. Install the bundle using composer:

    ```
    $ composer require ntidev/impersonation-bundle "dev-master"

    ```
2. Add the bundle configuration to the AppKernel

    ```
    public function registerBundles()
    {
        $bundles = array(
            ...
            new NTI\ImpersonationBundle\NTIImpersonationBundle(),
            ...
        );
    }

    ```
3. Setup the configuration in the `config.yml`

    ```
    # NTI
    nti_impersonation:
        redirect_route: 'deshblard'
        user_class: 'AppBundle\Entity\User\User'
        user_class_property: 'username'
        firewall: 'main'

    ```
4. Update the database schema

    ```
    $ php app/console doctrine:schema:update

    ```

### Requirements

[](#requirements)

1. The entity that the bundle uses is currently hard coded to AppBundle\\Entity\\User\\User and it uses the "username" property to find a valid user to impersonate.

### Usage

[](#usage)

1. Generate an impersonation key

    ```
    $ php app/console nti:impersonation:generate-key [username]

    ```
2. Copy the provided key and go to the url: `/nti/impersonate/{key}`
3. You will be redirected to the configured route logged in as the user for which the key was generated.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~225 days

Total

4

Last Release

2497d ago

### Community

Maintainers

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

---

Top Contributors

[![bvisonl](https://avatars.githubusercontent.com/u/4421747?v=4)](https://github.com/bvisonl "bvisonl (3 commits)")[![hectorvent](https://avatars.githubusercontent.com/u/2405682?v=4)](https://github.com/hectorvent "hectorvent (1 commits)")

---

Tags

LogBundle

### Embed Badge

![Health badge](/badges/nti-impersonation-bundle/health.svg)

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M119](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)

PHPackages © 2026

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