Download the PHP package koh/sylius-a2a without Composer

On this page you can find all versions of the php package koh/sylius-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 sylius-a2a

koh/sylius-a2a

An A2A agent for a Sylius shop: a JSON-RPC endpoint at /api/agent/a2a speaking A2A 1.0 (spec release v1.0.1), two catalogue skills behind it, and the Agent Card at /.well-known/agent-card.json that names both. No language model and no API key: every skill is a deterministic, read-only catalogue lookup.

Install

The endpoint sits under /api/agent/, the agent API prefix. Keep that prefix out of the session-bearing shop firewall, as for the other agent documents — otherwise every agent call starts a shop session:

Configure

Everything has a default; a shop that configures nothing serves the endpoint and the card.

The endpoint

JSON-RPC 2.0 over POST /api/agent/a2a, Content-Type: application/json, one call per request (batches are refused). Clients send A2A-Version: 1.0 (a header, or the A2A-Version query parameter); the patch level is ignored. A request without one is a 0.3 client by the spec's rule and gets VersionNotSupportedError (-32009).

Method Answer
SendMessage A Task in TASK_STATE_COMPLETED with the result as an artifact
GetTask The same task, rebuilt from its id
CancelTask TaskNotCancelableError (-32002): every task is finished when it is created
ListTasks An empty list: tasks belong to no account, so none is visible to anyone
SendStreamingMessage, SubscribeToTask, GetExtendedAgentCard UnsupportedOperationError (-32004)
push-notification configuration PushNotificationNotSupportedError (-32003)

Errors carry google.rpc.ErrorInfo / google.rpc.BadRequest details in error.data. Protocol errors come back with HTTP 200; only an oversized body (413) and a client over its rate limit (429 with Retry-After) keep an HTTP status.

Skills

Each product comes with its price (the channel price, gross in a shop that prices with tax included, in minor units, currency and formatted for the locale), the struck-through original price where there is one, availability as the storefront's inventory checker reports it, and the product page URL. The artifact holds an application/json data part and a text/plain rendering; configuration.acceptedOutputModes narrows that. A message picks its skill with a skill field (data part or message metadata); without one, a code or slug means product detail and anything else a search.

Tasks without storage

A task id is the task: skill, arguments, channel, locale, context and creation time, signed with the kernel secret. GetTask checks the signature and runs the lookup again, so any replica answers and nothing is written; a forged, tampered or expired id is not found. The artifacts therefore show the catalogue as it is when the task is fetched. No conversation state is kept: a message to an existing task is refused (the task is finished), and history is not returned.

Discovery

The card lists supportedInterfaces with this endpoint first, then any configured interfaces, and the skills the endpoint runs — not the shared skill registry, which also holds skills other interfaces serve. While the card is served, the endpoint is announced to the discovery registry (llms.txt, the readiness check) and the JSON-RPC endpoint to the RFC 9727 api-catalog with the card as its service-desc, which also puts it into the Link headers. With the endpoint disabled and no interfaces, the card answers 404 and nothing announces it.

Do not list the MCP endpoint under interfaces. It speaks MCP, not A2A, and needs an admin-delegated token. The binding is limited to the three A2A core bindings, so MCP is rejected at container build. transport_path is deprecated and ignored.

Security

Public, unauthenticated, read-only. Nothing reaches an agent that an anonymous storefront visitor could not see. Requests are rate-limited per client address (Symfony RateLimiter over cache.app), the body is size-capped before parsing and depth-capped while parsing, and messages are limited to 20 parts and 2000 characters of text. The services keep no per-request state, which matters under FrankenPHP's worker mode.

Decommission

Remove the composer require, the bundle entry, the route import and config/packages/koh_a2a.yaml. No table and no cache pool; the rate limiter's entries in cache.app expire on their own.

Reporting vulnerabilities

Report vulnerabilities privately — see SECURITY.md. Advisories are published as CSAF 2.0 at https://ole-hartwig.eu/.well-known/csaf/.

Licence

MIT — see LICENSE.


All versions of sylius-a2a with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
doctrine/orm Version ^2.18 || ^3.5
koh/sylius-agent-contracts Version ^1.1
sylius/sylius Version ^2.2.9 || ^2.3.0
symfony/config Version ^7.4 || ^8.0
symfony/dependency-injection Version ^7.4 || ^8.0
symfony/http-foundation Version ^7.4 || ^8.0
symfony/http-kernel Version ^7.4 || ^8.0
symfony/rate-limiter Version ^7.4 || ^8.0
symfony/routing Version ^7.4 || ^8.0
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 koh/sylius-a2a contains the following files

Loading the files please wait ...