Download the PHP package onix-systems-php/hyperf-impersonate without Composer
On this page you can find all versions of the php package onix-systems-php/hyperf-impersonate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download onix-systems-php/hyperf-impersonate
More information about onix-systems-php/hyperf-impersonate
Files in onix-systems-php/hyperf-impersonate
Download onix-systems-php/hyperf-impersonate
More information about onix-systems-php/hyperf-impersonate
Files in onix-systems-php/hyperf-impersonate
Vendor onix-systems-php
Package hyperf-impersonate
Short Description Hyperf Impersonate is a plugin that allows to you to authenticate as your users
License MIT
Package hyperf-impersonate
Short Description Hyperf Impersonate is a plugin that allows to you to authenticate as your users
License MIT
Please rate this library. Is it a good library?
Informations about the package hyperf-impersonate
Hyperf-impersonate component
Includes the following classes:
- Contract:
- Impersonatable;
- Controller:
- ImpersonateController;
- DTO:
- ImpersonateInfoDTO;
- ImpersonateLeaveDTO;
- ImpersonateTakeDTO;
- Event:
- LeaveImpersonation
- TakeImpersonation
- Exception:
- AlreadyImpersonatingException;
- CantBeImpersonatedException;
- CantImpersonateException;
- CantImpersonateSelfException;
- NotImpersonatingException;
- ProtectedAgainstImpersonationException;
- Middleware:
- ProtectFromImpersonation;
- Resource:
- ResourceInfoImpersonate;
- ResourceLeaveImpersonate;
- ResourceTakeImpersonate;
- Service:
- ImpersonateService;
- Trait
- Impersonatable
Install:
Publish config:
Publish translations:
Import impersonate routes:
Add line to for swagger:
Basic Usage
Advanced Usage
Defining impersonation authorization
By default all users can impersonate an user.
You need to add the method canImpersonate()
to your user model:
By default all users can be impersonated.
You need to add the method canBeImpersonated()
to your user model to extend this behavior:
All versions of hyperf-impersonate with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-json Version *
ext-openssl Version *
onix-systems-php/hyperf-auth Version >=1.2.3
onix-systems-php/hyperf-core Version >=1.2
ext-json Version *
ext-openssl Version *
onix-systems-php/hyperf-auth Version >=1.2.3
onix-systems-php/hyperf-core Version >=1.2
The package onix-systems-php/hyperf-impersonate contains the following files
Loading the files please wait ....