Download the PHP package cloakings/cloakings-common without Composer
On this page you can find all versions of the php package cloakings/cloakings-common. 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 cloakings-common
Cloakings Common Library
Detect if user is bot or real user.
Install
Usage
Basic Usage
If there is library that fits your needs and implements CloakerInterface
- use it.
Chaining
If you want visitor to pass several cloakers then use ChainCloaker
Logic:
- if cloaker tells "Fake" - stop and return "Fake"
- if cloaker tells "Response" - stop and return "Response"
- if cloaker tells "Real" - continue to the next cloaker; return last "Real" response
- if cloaker tells "Error" - continue to the next cloaker; return last "Real" response; if all cloakers return "Error" then return last "Error"
Create own Cloaker
Implement CloakerInterface
.
Return mode
:
- "Real": it seems that visitor is real human user
- "Fake": it seems that visitor is bot user
- "Response": don't show fake or real site but this response: usually temp pages for additional checks like captcha or js challenge
- "Error": cannot decide
Return response
: used only in mode "Response" or "Error"
Return probability
: how sure you are 0.0 - 1.0
.
Useful if you have several cloakers and one says "Real", another says "Fake" and you want to decide.
Usually just keep default 1.0
.
All versions of cloakings-common with dependencies
PHP Build Version
Package Version
The package cloakings/cloakings-common contains the following files
Loading the files please wait ....