PHPackages                             mauricioperera/php-a2e - 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. mauricioperera/php-a2e

ActiveLibrary

mauricioperera/php-a2e
======================

Agent-to-Execution protocol for PHP — declarative workflow execution for AI agents

v1.0.0(1mo ago)00MITPHPPHP &gt;=8.1

Since Mar 28Pushed 1mo agoCompare

[ Source](https://github.com/MauricioPerera/php-a2e)[ Packagist](https://packagist.org/packages/mauricioperera/php-a2e)[ Docs](https://github.com/MauricioPerera/php-a2e)[ RSS](/packages/mauricioperera-php-a2e/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

PHP A2E
=======

[](#php-a2e)

Agent-to-Execution protocol for PHP — declarative workflow execution for AI agents. Port of the [A2E protocol](https://github.com/MauricioPerera/a2e) to native PHP.

Zero external dependencies. Only PHP 8.1+.

```
composer require mauricioperera/php-a2e

```

What is A2E?
------------

[](#what-is-a2e)

A2E enables AI agents to execute complex workflows **without arbitrary code execution**. The agent describes *what* to do (declarative JSONL), the server validates and executes it from a catalog of pre-approved operations.

```
Agent (LLM)  →  JSONL workflow  →  Validate (6 stages)  →  Execute  →  Structured results
               (declarative)       (security boundary)     (safe)

```

Quick Start
-----------

[](#quick-start)

```
use PHPA2E\A2E;
use PHPA2E\Config;

$a2e = new A2E(new Config(masterKey: 'your-secret-key'));

// Define a workflow in JSONL
$workflow = implode("\n", [
    json_encode(['type' => 'operationUpdate', 'operationId' => 'fetch-users',
        'operation' => ['ApiCall' => [
            'method' => 'GET',
            'url' => 'https://jsonplaceholder.typicode.com/users',
            'outputPath' => '/workflow/users',
        ]]]),
    json_encode(['type' => 'operationUpdate', 'operationId' => 'filter-active',
        'operation' => ['FilterData' => [
            'inputPath' => '/workflow/users',
            'conditions' => [['field' => 'id', 'operator' => 'resolveReferences($config['message']);
        // ... send to Slack
        return ['sent' => true, 'channel' => $config['channel']];
    }
}

$a2e->operations->register(new SendSlackMessage());
```

The PHP AI Agent Ecosystem
--------------------------

[](#the-php-ai-agent-ecosystem)

PackagePurpose[php-vector-store](https://github.com/MauricioPerera/php-vector-store)Vector database (storage engine)[php-agent-memory](https://github.com/MauricioPerera/php-agent-memory)Agent memory + dream consolidation (the brain)[php-agent-shell](https://github.com/MauricioPerera/php-agent-shell) *(coming soon)*CLI execution + vector discovery (the hands)**php-a2e**Declarative workflow execution (the orchestrator)[Neuron AI](https://github.com/neuron-core/neuron-ai)Agent framework (the body)Testing
-------

[](#testing)

```
composer install
vendor/bin/phpunit    # 26 tests, 54 assertions
```

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6414920fb4353a63c1bf6af3e78e0b1387fa77adcf7610f9a7ff6e6d39ee757?d=identicon)[MauricioPerera](/maintainers/MauricioPerera)

---

Top Contributors

[![MauricioPerera](https://avatars.githubusercontent.com/u/6507438?v=4)](https://github.com/MauricioPerera "MauricioPerera (3 commits)")

---

Tags

aiprotocolworkflowAgentdeclarativeneuron-airagexecutiona2e

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mauricioperera-php-a2e/health.svg)

```
[![Health](https://phpackages.com/badges/mauricioperera-php-a2e/health.svg)](https://phpackages.com/packages/mauricioperera-php-a2e)
```

###  Alternatives

[maestroerror/laragent

Power of AI Agents in your Laravel project

630106.4k](/packages/maestroerror-laragent)[vizra/vizra-adk

Vizra Agent Development Kit - A comprehensive Laravel package for building intelligent AI agents.

29026.1k](/packages/vizra-vizra-adk)[symfony/ai-agent

PHP library for building agentic applications.

30536.7k44](/packages/symfony-ai-agent)[vectorifyai/vectorify-laravel

Vectorify package for Laravel. The fastest way to ask AI about your data.

206.1k](/packages/vectorifyai-vectorify-laravel)[shipfastlabs/agent-detector

Detect if code is running in an AI agent or automated development environment

372.5k4](/packages/shipfastlabs-agent-detector)

PHPackages © 2026

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