brettt89 / incapsula-api-php
PHP library for Incapsula API
1.0.1
2020-07-22 03:06 UTC
Requires
- php: >=7.1
- ext-json: *
- guzzlehttp/guzzle: ^6.5
- psr/http-message: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-11-23 18:39:26 UTC
README
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:
- Account
- Sites
- DDoS Protection
- Traffic Statistics and Details
- Login Protect
- Integration API
- Infrastructure Protection Test Alerts
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.