Download the PHP package blackcube/powshield without Composer
On this page you can find all versions of the php package blackcube/powshield. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package powshield
PowsShield for Yii2
Installation
The preferred way to install this extension is through composer.
Configuration
Add the following code to your configuration file:
This sets up the module and:
-
activate api routes:
/powshield/generate-challenge
to generate a challenge/powshield/verify-solution
to check a solution
-
activate the validator:
powshield
to validate a solution in a model
Usage
Client side
You can use the following libraries to generate and check the solution:
- @blackcube/aurelia2-powshield Aurelia 2 powshield
- @blackcube/vanilla-powshield VanillaJS powshield
Once solution is generated, you should send it to the server
Server side
You can use the following code to validate a solution:
If the solution is not valid, the model will have an error on captchaSolution
.
All versions of powshield with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
ext-intl Version *
ext-json Version *
ext-fileinfo Version *
ext-dom Version *
vlucas/phpdotenv Version ~5.4
yiisoft/yii2 Version ~2.0.13
ext-intl Version *
ext-json Version *
ext-fileinfo Version *
ext-dom Version *
vlucas/phpdotenv Version ~5.4
yiisoft/yii2 Version ~2.0.13
The package blackcube/powshield contains the following files
Loading the files please wait ....