cloakings/cloakings-magicchecker

Cloakings MagicChecker Client

1.1.1 2024-06-26 15:57 UTC

This package is auto-updated.

Last update: 2024-11-26 17:06:23 UTC


README

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.