定制 cloakings/cloakings-palladium 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cloakings/cloakings-palladium

最新稳定版本:1.2.0

Composer 安装命令:

composer require cloakings/cloakings-palladium

包简介

Cloakings Palladium Client

README 文档

README

Detect if user is bot or real user using palladium.expert

Install

composer require cloakings/cloakings-palladium

Usage

Basic Usage

Register at https://palladium.expert. Create campaign:

  • Link to the target page: real.php
  • Link for bots: fake.php

Click "download code" for plain PHP or Wordpress and look for:

  • clientId
  • clientCompany
  • clientSecret
$request = \Symfony\Component\HttpFoundation\Request::createFromGlobals();
$cloaker = \Cloakings\CloakingsPalladium\PalladiumCloaker(
    clientId: $clientId,
    clientCompany: $clientCompany,
    clientSecret: $clientSecret,
);
$cloakerResult = $cloaker->handle($request);

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

If you want to render result like the original Palladium library

$baseIncludeDir = __DIR__; // change to your dir with real.php and fake.php
$renderer = \Cloakings\CloakingsPalladium\PalladiumRenderer();
$response = $renderer->render($cloakerResult);

If your filenames differ from real.php and fake.php change params $fakeTargetContains and $realTargetContains in PalladiumCloaker constructor.

Default traffic source is PalladiumTrafficSourceEnum::Adwords but you can change it to Facebook or Tiktok.

Original Logic

Original library is located at doc/original:

  • php - plain PHP integration
  • wordpress - WordPress integration

License for this repository doesn't cover that code.

统计信息

  • 总下载量: 3.44k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固