brettt89/incapsula-api-php

PHP library for Incapsula API

1.0.1 2020-07-22 03:06 UTC

This package is auto-updated.

Last update: 2024-04-23 17:10:30 UTC


README

PHP Composer codecov

Installation

The recommended way to install this package is via the Packagist Dependency Manager (brettt89/incapsula-api-php).

$ composer require brettt89/incapsula-api-php

Incapsula API version 1

The Incapsula API can be found here. Each API call is provided via a similarly named function within various classes in the IncapsulaAPI namespace:

Note that this repository is currently under development, additional endpoints are being actively added.

Getting Started

$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));

Contributions

Please submit any contributions as a pull request to the master branch.