{"id":36372200,"url":"https://github.com/nathan242/php-icap-client","last_synced_at":"2026-01-11T14:01:52.789Z","repository":{"id":57023944,"uuid":"191025628","full_name":"nathan242/php-icap-client","owner":"nathan242","description":"PHP client library to use ICAP servers (RFC 3507)","archived":false,"fork":false,"pushed_at":"2023-07-02T13:50:09.000Z","size":21,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-20T13:53:23.593Z","etag":null,"topics":["icap","icap-client","php","php-icap-client","rfc3507"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nathan242.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-09T15:50:08.000Z","updated_at":"2024-10-16T08:01:17.000Z","dependencies_parsed_at":"2022-08-23T13:50:25.042Z","dependency_job_id":null,"html_url":"https://github.com/nathan242/php-icap-client","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nathan242/php-icap-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan242%2Fphp-icap-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan242%2Fphp-icap-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan242%2Fphp-icap-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan242%2Fphp-icap-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathan242","download_url":"https://codeload.github.com/nathan242/php-icap-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan242%2Fphp-icap-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28306985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T11:18:18.743Z","status":"ssl_error","status_checked_at":"2026-01-11T11:07:56.842Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["icap","icap-client","php","php-icap-client","rfc3507"],"created_at":"2026-01-11T14:01:42.188Z","updated_at":"2026-01-11T14:01:52.715Z","avatar_url":"https://github.com/nathan242.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-icap-client\n\nPHP ICAP client.\n\nAllows you to send requests to Internet Content Adaptation Protocol (ICAP) servers from PHP.\n\n### Usage\n\nInstantiate the class with the ICAP server address and port:\n\n```php\n$icap = new IcapClient('127.0.0.1', 13440);\n```\n\nSend an OPTIONS request to the \"example\" service:\n\n```php\n$icap-\u003eoptions('example');\n```\n\nSend a REQMOD and RESPMOD request to the \"example\" service:\n\n```php\n$icap-\u003ereqmod(\n    'example',\n    [\n        'req-hdr' =\u003e \"POST /test HTTP/1.1\\r\\nHost: 127.0.0.1\\r\\n\\r\\n\",\n        'req-body' =\u003e 'This is another test.'\n    ]\n);\n\n$icap-\u003erespmod(\n    'example',\n    [\n        'res-hdr' =\u003e \"HTTP/1.1 200 OK\\r\\nServer: Test/0.0.1\\r\\nContent-Type: text/html\\r\\n\\r\\n\",\n        'res-body' =\u003e 'This is a test.'\n    ]\n);\n```\n\nSuccessful requests will return an array describing the response:\n\n```\nArray\n(\n    [protocol] =\u003e Array\n        (\n            [icap] =\u003e ICAP/1.0\n            [code] =\u003e 200\n            [message] =\u003e OK\n        )\n\n    [headers] =\u003e Array\n        (\n            [Date] =\u003e Wed, 03 Jul 2019 22:11:33 GMT\n            [ISTag] =\u003e X7K07GDZQW702ZVLSG6WWO0EPE2CTOMR\n            [Encapsulated] =\u003e res-hdr=0, res-body=64\n            [Server] =\u003e ICAP/1.3 Python/2.7.3\n        )\n\n    [body] =\u003e Array\n        (\n            [res-hdr] =\u003e HTTP/1.1 200 OK\ncontent-type: text/html\nserver: Test/0.0.1\n            [res-body] =\u003e This is a test.\n        )\n\n    [rawBody] =\u003e HTTP/1.1 200 OK\ncontent-type: text/html\nserver: Test/0.0.1\n\nf\nThis is a test.\n0\n\n\n)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathan242%2Fphp-icap-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathan242%2Fphp-icap-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathan242%2Fphp-icap-client/lists"}