Skip to content

cloakings/cloakings-magicchecker

Repository files navigation

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.

About

MagicChecker Cloaking Integration

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages