Download the PHP package chuimi/filament-impersonation without Composer

On this page you can find all versions of the php package chuimi/filament-impersonation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-impersonation

Filament Impersonation

Tests

Controlled and audited user impersonation plugin for Laravel and Filament applications.

Allows an authorized operator to temporarily authenticate as another user while preserving a mandatory audit trail of the real operator.

Requirements

Installation

Publish the configuration file:

Minimal setup

Installing the package alone is not enough for the impersonation action to appear in the UI. The plugin must be registered in a panel and the action must be added to a resource explicitly.

The package does not auto-register in any Filament panel or inject the action into any resource. This is intentional — applications may have multiple panels and different authorization policies per context.

1. Install and publish config

2. Set required configuration

In config/filament-impersonation.php, configure at minimum guard, user_model, an authorization rule (operator_roles or can_impersonate), and protected_roles.

3. Register the plugin in your panel — required for the banner

4. Add the action to the users table — required for the trigger

5. Clear caches

For a detailed checklist including config examples, redirects, and manual verification steps see Integration guide — Minimal setup checklist.

Usage

Register the plugin in a Filament panel

Once registered, the impersonation banner is shown automatically at the bottom of the panel while any impersonation session is active.

Add the action to a resource or page

The action is hidden automatically when the current user cannot impersonate the record. It must be added manually to the resources or pages where impersonation should be available.

Enrich activity logs with impersonation context (opt-in)

Apply the trait to any Eloquent model that uses spatie/laravel-activitylog and should include impersonation context in its activity entries:

This trait is opt-in and must be added manually per model. The package does not apply impersonation context globally to all activity logs.

Security notes

Full details in docs/SECURITY.md.

Documentation

Document Description
Integration guide Installation, plugin registration, authorization, redirects, audit trait, multi-guard
Security guide Security model, audit events, CSRF, known risks, design decisions, audit queries for administrators
Architecture Design decisions, session payload, activity log events, internal flow
Architecture map Component overview and sequence diagrams

License

MIT — see LICENSE.


All versions of filament-impersonation with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^12.0
illuminate/contracts Version ^12.0
illuminate/routing Version ^12.0
filament/filament Version ^5.0
spatie/laravel-activitylog Version ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package chuimi/filament-impersonation contains the following files

Loading the files please wait ...