PHPackages                             brettt89/incapsula-api-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. brettt89/incapsula-api-php

ActiveLibrary[API Development](/categories/api)

brettt89/incapsula-api-php
==========================

PHP library for Incapsula API

1.0.1(5y ago)04[5 issues](https://github.com/brettt89/incapsula-php/issues)BSD-3-ClausePHPPHP &gt;=7.1CI failing

Since Jun 15Pushed 5y ago2 watchersCompare

[ Source](https://github.com/brettt89/incapsula-php)[ Packagist](https://packagist.org/packages/brettt89/incapsula-api-php)[ RSS](/packages/brettt89-incapsula-api-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

Incapsula SDK (v1 API Binding for PHP 7)
========================================

[](#incapsula-sdk-v1-api-binding-for-php-7)

[![PHP Composer](https://github.com/brettt89/incapsula-php/workflows/PHP%20Composer/badge.svg?branch=master)](https://github.com/brettt89/incapsula-php)[![codecov](https://camo.githubusercontent.com/bdba04c95bc1fc99dddf4a2eece9876d5aa7a62100cca27c9cec73bf24e8f5db/68747470733a2f2f636f6465636f762e696f2f67682f62726574747438392f696e63617073756c612d7068702f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/brettt89/incapsula-php)

Installation
------------

[](#installation)

The recommended way to install this package is via the Packagist Dependency Manager ([brettt89/incapsula-api-php](https://packagist.org/packages/brettt89/incapsula-api-php)).

```
$ composer require brettt89/incapsula-api-php
```

Incapsula API version 1
-----------------------

[](#incapsula-api-version-1)

The Incapsula API can be found [here](https://docs.imperva.com/bundle/cloud-application-security/page/api/api.htm). Each API call is provided via a similarly named function within various classes in the **IncapsulaAPI** namespace:

- [Account](https://docs.imperva.com/bundle/cloud-application-security/page/api/accounts-api.htm)
- [Sites](https://docs.imperva.com/bundle/cloud-application-security/page/api/sites-api.htm)
- [DDoS Protection](https://docs.imperva.com/bundle/cloud-application-security/page/api/ddos-for-networks.htm)
- [Traffic Statistics and Details](https://docs.imperva.com/bundle/cloud-application-security/page/api/traffic-api.htm)
- [Login Protect](https://docs.imperva.com/bundle/cloud-application-security/page/api/login-protect-api.htm)
- [Integration API](https://docs.imperva.com/bundle/cloud-application-security/page/api/integration-api.htm)
- [Infrastructure Protection Test Alerts](https://docs.imperva.com/bundle/cloud-application-security/page/api/network-ddos-api.htm)

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

Getting Started
---------------

[](#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
-------------

[](#contributions)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~18 days

Total

3

Last Release

2122d ago

Major Versions

v0.1 → 1.0.02020-07-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d7967367c3797eb0077efe95964c746af01a64a5a7f34c9551a0bc57e5092f8?d=identicon)[brettt89](/maintainers/brettt89)

---

Top Contributors

[![brettt89](https://avatars.githubusercontent.com/u/4122344?v=4)](https://github.com/brettt89 "brettt89 (85 commits)")

---

Tags

apiapi-clientapi-client-phpimpervaincapsulaincapsula-apiphpphp7

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/brettt89-incapsula-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/brettt89-incapsula-api-php/health.svg)](https://phpackages.com/packages/brettt89-incapsula-api-php)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M468](/packages/saloonphp-saloon)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[yoti/yoti-php-sdk

Yoti SDK for quickly integrating your PHP backend with Yoti

27539.9k1](/packages/yoti-yoti-php-sdk)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
