> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.humansecurity.com/applications/php/llms.txt. # PHP ## 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](http://php.net/downloads.php) ## Installation You can install using Composer: ```shell $ composer require perimeterx/php-sdk ``` \ Or by downloading the sources for this repository, and running `composer install`. ### Basic Usage Example ```php use Perimeterx\Perimeterx; $perimeterxConfig = [ 'app_id' => 'APP_ID', 'cookie_key' => 'COOKIE_SECRET', 'auth_token' => 'AUTH_TOKEN', 'blocking_score' => 60, 'module_mode' => Perimeterx::$ACTIVE_MODE ]; /* Obtain PerimeterX SDK instance */ $px = Perimeterx::Instance($perimeterxConfig); /* run verify at the beginning of a page request */ $px->pxVerify(); ``` ## Docs - [Changelog](https://docs.humansecurity.com/applications/php/changelog/llms.txt) - [Upgrading](https://docs.humansecurity.com/applications/php/upgrading.md) - [Configuration Options](https://docs.humansecurity.com/applications/php/configuration.md) - [Advanced Configuration](https://docs.humansecurity.com/applications/php/advanced-configuration.md)