PHP code example of brettt89 / incapsula-api-php
1. Go to this page and download the library: Download brettt89/incapsula-api-php 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/ */
brettt89 / incapsula-api-php example snippets
$key = new IncapsulaAPI\Auth\ApiKey('Api-ID', 'Api-Key');
$adapter = new IncapsulaAPI\Adapter\Guzzle($key);
$account = new IncapsulaAPI\Endpoint\Account($adapter);
$account_id = 123456;
print_r($account->getSites($account_id));
bash
$ composer