Download the PHP package neuron-core/a2a without Composer

On this page you can find all versions of the php package neuron-core/a2a. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package a2a

A2A PHP Server

A framework-agnostic PHP implementation of the A2A (Agent-to-Agent) Protocol that enables AI agents to communicate and collaborate across different platforms, frameworks, and organizations.

Table of Contents


Introduction

The A2A (Agent-to-Agent) Protocol is an open standard that enables seamless communication and collaboration between AI agents. It provides a common language for agents built using diverse frameworks and by different vendors, fostering interoperability and breaking down silos.

Official Specification: https://a2a-protocol.org/latest/specification/

What This Library Provides


Features

Supported A2A Methods

Framework Support


Quick Start

Standalone Usage

1. Create Your Agent Server

You can create your own server class extending NeuronCore\A2A\A2AServer. This class provides the main entry point to expose your AI agent to the world. You need to implement two components to create a server:

2. Implement Task Repository

3. Implement Message Handler (Your AI Logic)

The message handler is responsible for handling incoming messages and returning task results. It's the place where you execute your AI Agent and return the results.

4. Use the Server

See examples/a2a.php for a complete working example.


Laravel Integration

Laravel gets first-class support with Artisan commands, service providers, and routing helpers.

1. Register Service Provider

In config/app.php or bootstrap/providers.php based on your project structure:

2. Generate an Agent server

This generates:

You must implement the Task Repository and Message Handler.

4. Register Routes

In routes/api.php:

Done! Your agent is live at:

Multiple Agents

Create and register as many agents as needed:

Each agent is completely independent with its own:


Core Concepts

Message Structure

Messages follow the A2A protocol:

Agent Card

The agent card is a JSON manifest that describes:

Task Context

Tasks can be grouped by contextId for conversation continuity:


API Reference

A2AServer Abstract Class

Abstract Methods:

Public Methods:

TaskRepositoryInterface

MessageHandlerInterface


Advanced Usage

Custom Task Repository

Use Eloquent, Redis, File, or any storage backend:

Authentication & Middleware

Laravel example with custom middleware:

File Attachments

Handle file uploads in messages:

Structured Data

Send and receive structured JSON data:


Contributing

When contributing to this project:


License

MIT License—See LICENSE file for details


All versions of a2a with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package neuron-core/a2a contains the following files

Loading the files please wait ...