For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
HUMAN DashboardHUMAN WebsiteRequest a Demo
Product GuidesEnforcer GuidesMobile SDKAPI ReferenceCustomer support
Product GuidesEnforcer GuidesMobile SDKAPI ReferenceCustomer support
  • General
    • About Enforcers
    • Support first-party HUMAN calls
    • Troubleshoot Enforcer configurations
  • Enforcer frameworks
    • Akamai ESI
    • Apache - C Module
    • ASP.NET
    • Callout Enforcer
    • Envoy Proxy
    • F5 BIGIP
    • Fastly JavaScript Compute@Edge
    • Google Cloud Platform (GCP) Callout Enforcer
    • Kong Plugin
    • NGINX - C Module
    • NGINX - LUA Module
    • PHP
      • What's New
      • Upgrading
      • Configuration Options
      • Advanced Configuration
      • Contributing
    • Python
    • Ruby
    • Salesforce Commerce Cloud Cartridge
LogoLogo
Login
Login
HUMAN DashboardHUMAN WebsiteRequest a Demo
On this page
  • Introduction
  • Getting Started
  • Dependencies
  • Installation
  • Basic Usage Example
Enforcer frameworks

PHP

Was this page helpful?
Previous

What's New

Next
Built with

Introduction

HUMAN Bot Defender is designed for high scalability and seamless integration with PHP. Detection and blocking of all attack types can start almost immediately. Risk scoring and blocking of bad bots is automatic and does not require any dedicated employees to monitor. There is no impact on performance, and there will be a reduction in requests and loading of system with the elimination of bad bot requests.

Getting Started

Dependencies

  • v5.6 <= PHP <= v7.0.15

Installation

You can install using Composer:

$$ composer require perimeterx/php-sdk

Or by downloading the sources for this repository, and running composer install.

Basic Usage Example

1use Perimeterx\Perimeterx;
2
3$perimeterxConfig = [
4 'app_id' => 'APP_ID',
5 'cookie_key' => 'COOKIE_SECRET',
6 'auth_token' => 'AUTH_TOKEN',
7 'blocking_score' => 60,
8 'module_mode' => Perimeterx::$ACTIVE_MODE
9];
10
11/* Obtain PerimeterX SDK instance */
12$px = Perimeterx::Instance($perimeterxConfig);
13
14/* run verify at the beginning of a page request */
15$px->pxVerify();