1. Go to this page and download the library: Download webkernelai/php-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
webkernelai / php-sdk example snippets
use WebKernelAI\SDK\Config;
use WebKernelAI\SDK\Client;
ebkernelai.com/php-sdk)
$config = new Config([
'site_id' => 'YOUR_SITE_ID',
'pairing_secret' => 'YOUR_PAIRING_SECRET_KEY',
'api_url' => 'https://api.webkernelai.com',
'enable_waf' => true,
'enable_headers' => true,
'excluded_routes' => ['/admin', '/backend', '/administrator', '/dashboard'], // Bypass WAF on admin panels
'whitelisted_ips' => ['123.456.78.90'], // Optional: whitelist admin/office IPs
]);
// 2. Boot WebKernelAI Engine
// Automatically handles API handshake endpoint (/webkernelai-api), WAF threat filtering, security headers, and dynamic SEO sync
$client = new Client($config);
$client->boot();