PHPackages                             arcp/sdk - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. arcp/sdk

ActiveLibrary[HTTP &amp; Networking](/categories/http)

arcp/sdk
========

PHP reference implementation of the Agent Runtime Control Protocol (ARCP) v1.1

v1.1.1(2mo ago)13[1 issues](https://github.com/agentruntimecontrolprotocol/php-sdk/issues)[1 PRs](https://github.com/agentruntimecontrolprotocol/php-sdk/pulls)Apache-2.0PHPPHP &gt;=8.4CI passing

Since May 22Pushed 3w agoCompare

[ Source](https://github.com/agentruntimecontrolprotocol/php-sdk)[ Packagist](https://packagist.org/packages/arcp/sdk)[ Docs](https://github.com/agentruntimecontrolprotocol/php-sdk)[ RSS](/packages/arcp-sdk/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (23)Versions (7)Used By (0)

### ARCP PHP SDK

[](#arcp-php-sdk)

**PHP SDK for the Agent Runtime Control Protocol (ARCP) — submit, observe, and control long-running agent jobs from PHP.**

 [![Packagist](https://camo.githubusercontent.com/b703a5d830e4bcb98b373b46bcc06aff3575d21994df5bb407d06670bdfa4ee3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617263702f73646b2e737667)](https://packagist.org/packages/arcp/sdk) [![CI](https://github.com/agentruntimecontrolprotocol/php-sdk/actions/workflows/test.yml/badge.svg)](https://github.com/agentruntimecontrolprotocol/php-sdk/actions/workflows/test.yml) [![PHP version](https://camo.githubusercontent.com/f63d3160c70d8568a535f7ab20626d9627ebb6530716e0998976010e0a5d90c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f617263702f73646b2e737667)](https://packagist.org/packages/arcp/sdk) [![ARCP](https://camo.githubusercontent.com/89287ebaee5bba0afc67548ac048097c28b2758669ef170b2b3ae4998784547c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f415243502d76312e3125323064726166742d626c7565)](https://github.com/agentruntimecontrolprotocol/spec/blob/main/docs/draft-arcp-1.1.md) [![License](https://camo.githubusercontent.com/2a12ce77c2a7c4cd88de83ccde959ce79bfa7db6cfa984d04460cdb463da5ad8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4170616368652d2d322e302d6c6967687467726579)](LICENSE) [![Codecov](https://camo.githubusercontent.com/6ba43ede4097e8d24a6b1411604f55ded45bc2c6ead5b0481f81fb007ccdf620/68747470733a2f2f636f6465636f762e696f2f67682f6167656e7472756e74696d65636f6e74726f6c70726f746f636f6c2f7068702d73646b2f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/agentruntimecontrolprotocol/php-sdk)

 [Specification](https://github.com/agentruntimecontrolprotocol/spec/blob/main/docs/draft-arcp-1.1.md) · [Concepts](#concepts) · [Install](#installation) · [Quick start](#quick-start) · [Guides](docs/) · [API reference](docs/)

---

`arcp/sdk` is the PHP reference implementation of [ARCP](https://github.com/agentruntimecontrolprotocol/spec/blob/main/docs/draft-arcp-1.1.md), the Agent Runtime Control Protocol. It covers both sides of the wire — `Arcp\Client\ARCPClient` for submitting and observing jobs, `Arcp\Runtime\ARCPRuntime` for hosting agents — so either side can talk to any conformant peer in any language without hand-rolling the envelope, sequencing, or lease enforcement.

ARCP itself is a transport-agnostic wire protocol for long-running AI agent jobs. It owns the parts of agent infrastructure that don't change between products — sessions, durable event streams, capability leases, budgets, resume — and stays out of the parts that do. ARCP wraps the agent function; it does not define how agents are built, how tools are exposed (that's MCP), or how telemetry is exported (that's OpenTelemetry).

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

[](#installation)

Requires PHP 8.4 or newer and Composer 2.x. The SDK ships as a single Composer package; the `bin/arcp` CLI is registered automatically so `vendor/bin/arcp` is available in any project that pulls it in.

```
composer require arcp/sdk
```

The `pdo_sqlite`, `mbstring`, and `json` extensions are required (all bundled with most PHP distributions). The runtime uses [Amp v3](https://amphp.org/) + fibers; no extra extension is needed for async.

Quick start
-----------

[](#quick-start)

Connect to a runtime, submit a job, stream its events to completion:

```
