Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 965 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 965 Bytes

Cloakings MagicChecker

Detect if user is bot or real user using magicchecker.com

Install

composer require cloakings/cloakings-magicchecker

Usage

Basic Usage

Register at https://magicchecker.com/:

$request = \Symfony\Component\HttpFoundation\Request::createFromGlobals();
$cloaker = \Cloakings\CloakingsMagicChecker\MagicCheckerCloaker(
    campaignId: $campaignId
);
$cloakerResult = $cloaker->handle($request);

Check if result mode is CloakModeEnum::Fake or CloakModeEnum::Real and do something with it.

Original Logic

Original library is located at doc/original.

License for this repository doesn't cover that code.