Download the PHP package alp-develop/laravel-impersonate without Composer
On this page you can find all versions of the php package alp-develop/laravel-impersonate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download alp-develop/laravel-impersonate
More information about alp-develop/laravel-impersonate
Files in alp-develop/laravel-impersonate
Download alp-develop/laravel-impersonate
More information about alp-develop/laravel-impersonate
Files in alp-develop/laravel-impersonate
Vendor alp-develop
Package laravel-impersonate
Short Description Secure user impersonation for Laravel applications
License MIT
Package laravel-impersonate
Short Description Secure user impersonation for Laravel applications
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-impersonate
Laravel Impersonate
Secure user impersonation for Laravel applications. Built with a session-based architecture, versioned context, automatic validation middleware, and a full event system.
Requirements
- PHP 8.1+
- Laravel 10.x, 11.x , 12.x or 13.x
Installation
Publish the configuration file:
Quick Start
1. Implement the contract on your User model
2. Define a Gate policy
The package registers an impersonate gate that returns false by default. Override it in your AuthServiceProvider:
3. Start and stop impersonation
Documentation
| Section | Description |
|---|---|
| Configuration | All config options with types, defaults and examples |
| Authorization | Three-layer authorization model, validation order, role-based examples |
| Middleware | HandleImpersonation and ForbidDuringImpersonation setup and behavior |
| Events | All 5 events with payloads, listener examples, and flow diagram |
| API Reference | Full reference: Facade, Contract, Trait, Value Object, Enum, Macros, Blade directives |
| Security | Session regeneration, versioned context, automatic validation, IP tracking, recommendations |
Testing
Changelog
See CHANGELOG.md for recent changes.
License
MIT License. See LICENSE for details.
All versions of laravel-impersonate with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
The package alp-develop/laravel-impersonate contains the following files
Loading the files please wait ...