PHPackages                             nathan242/php-icap-client - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nathan242/php-icap-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nathan242/php-icap-client
=========================

Internet Content Adaptation Protocol (ICAP) client library

v0.5.1(2y ago)710.4k↓26.9%1MITPHPPHP &gt;=5.3.0

Since Jul 8Pushed 2y agoCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

php-icap-client
===============

[](#php-icap-client)

PHP ICAP client.

Allows you to send requests to Internet Content Adaptation Protocol (ICAP) servers from PHP.

### Usage

[](#usage)

Instantiate the class with the ICAP server address and port:

```
$icap = new IcapClient('127.0.0.1', 13440);
```

Send an OPTIONS request to the "example" service:

```
$icap->options('example');
```

Send a REQMOD and RESPMOD request to the "example" service:

```
$icap->reqmod(
    'example',
    [
        'req-hdr' => "POST /test HTTP/1.1\r\nHost: 127.0.0.1\r\n\r\n",
        'req-body' => 'This is another test.'
    ]
);

$icap->respmod(
    'example',
    [
        'res-hdr' => "HTTP/1.1 200 OK\r\nServer: Test/0.0.1\r\nContent-Type: text/html\r\n\r\n",
        'res-body' => 'This is a test.'
    ]
);
```

Successful requests will return an array describing the response:

```
Array
(
    [protocol] => Array
        (
            [icap] => ICAP/1.0
            [code] => 200
            [message] => OK
        )

    [headers] => Array
        (
            [Date] => Wed, 03 Jul 2019 22:11:33 GMT
            [ISTag] => X7K07GDZQW702ZVLSG6WWO0EPE2CTOMR
            [Encapsulated] => res-hdr=0, res-body=64
            [Server] => ICAP/1.3 Python/2.7.3
        )

    [body] => Array
        (
            [res-hdr] => HTTP/1.1 200 OK
content-type: text/html
server: Test/0.0.1
            [res-body] => This is a test.
        )

    [rawBody] => HTTP/1.1 200 OK
content-type: text/html
server: Test/0.0.1

f
This is a test.
0

)

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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 ~1454 days

Total

2

Last Release

1052d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9234242c6cd55a354c80df4a0ea3612f6803c9f87e84c4250986d4a1b4d6b7d6?d=identicon)[nathan242](/maintainers/nathan242)

---

Top Contributors

[![nathan242](https://avatars.githubusercontent.com/u/30781730?v=4)](https://github.com/nathan242 "nathan242 (10 commits)")

---

Tags

icapicap-clientphpphp-icap-clientrfc3507

### Embed Badge

![Health badge](/badges/nathan242-php-icap-client/health.svg)

```
[![Health](https://phpackages.com/badges/nathan242-php-icap-client/health.svg)](https://phpackages.com/packages/nathan242-php-icap-client)
```

###  Alternatives

[sven/env-providers

Load Laravel service providers based on your application's environment.

769.7k](/packages/sven-env-providers)[gerardojbaez/messenger

Messenger functionality for Laravel 5.2.

738.5k](/packages/gerardojbaez-messenger)

PHPackages © 2026

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