Download the PHP package ucp-php-sdk/symfony-bundle without Composer
On this page you can find all versions of the php package ucp-php-sdk/symfony-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ucp-php-sdk/symfony-bundle
More information about ucp-php-sdk/symfony-bundle
Files in ucp-php-sdk/symfony-bundle
Package symfony-bundle
Short Description Symfony integration for the Universal Commerce Protocol (UCP): merchant HTTP endpoints, configuration and storage adapters
License MIT
Homepage https://www.agentic-commerce.sh/protokolle/ucp/
Informations about the package symfony-bundle
Symfony Bundle
This package exposes the core SDK through Symfony services and HTTP endpoints.
Package name: ucp-php-sdk/symfony-bundle
It contains:
- bundle registration and configuration
- routes and controllers for discovery, catalog, cart, checkout, tokenization, OAuth, order read, A2A, and embedded surfaces
- request-context and idempotency listeners
- protocol JSON mapping
- default storage adapters based on Doctrine DBAL
- signing key and storage cleanup console commands
How To Use It
Use this package when the host app is Symfony and you want the SDK wired into HTTP endpoints quickly.
Install:
The default bundle stack gives you:
- runtime config resolution
- request signing and replay protection
- profile building and discovery signing keys
- idempotency handling
- cached remote platform-profile fetches
Basic bundle config:
Valid signature_policy values are off, log, and strict.
Valid transports values are rest, mcp, a2a, and embedded; REST is the default.
enabled_capabilities is an allowlist of capability descriptor names; the default empty list keeps every registered capability enabled.
When mcp is enabled, transport_endpoints.mcp is required because the shared SDK advertises MCP metadata only and does not provide a default /ucp/mcp runtime endpoint.
platform_policy decides which agent platforms may interact. The default listed refuses every platform whose profile host is not in allowed_profile_hosts, and an empty list refuses every remote platform. all is what the UCP specification describes as the default: any platform with a discoverable profile may interact without prior registration, and allowed_profile_hosts becomes the registry of pre-approved platforms, which are served without going through discovery. The fetch-safety rules (HTTPS only, no redirects, no loopback, link-local, private or metadata addresses) apply in both modes.
Under all, discovery of unknown platforms is bounded by discovery: at most max_fetches_per_window profile fetches per window_seconds across all origins, and a profile URL whose fetch failed is backed off for backoff_base_seconds, doubled per consecutive failure up to backoff_max_seconds. A rate-limited fetch answers 503 with Retry-After; a stale cached copy is served instead when there is one. Listed platforms are never counted. The profile cache itself is bounded by platform_profile_cache_max_entries, default 1000; over the limit, the entries that expired or expire first are dropped.
Set profile_fetching_development_mode to true only for localhost/plain-HTTP development.
Storage Schema
The default DBAL repositories do not install or migrate tables automatically. If you use the bundled DBAL storage adapter, call the schema bootstrapper from your install, update, deployment, or startup lifecycle before handling UCP traffic:
SchemaBootstrapper::ensureSchema() is idempotent and updates only SDK-owned
tables. It leaves unrelated application tables untouched.
Replace the default storage adapter by binding repository interfaces to your own services.
The default DBAL-backed repositories are only storage adapters for SDK state. They are not the required integration model for Shopware or any other platform.
The bundle runtime classes are part of the dead-code QA scope. Coverage and internal reference checks focus on bridge code, listeners, commands, controllers, and the realistic merchant example instead of the exported SDK contracts.
For service tags, config shape, and replacement rules, see AGENTS.md.
All versions of symfony-bundle with dependencies
ext-openssl Version *
doctrine/dbal Version ^3.7 || ^4.0
psr/log Version ^1.0 || ^2.0 || ^3.0
symfony/config Version ^6.4 || ^7.0
symfony/console Version ^6.4 || ^7.0
symfony/dependency-injection Version ^6.4 || ^7.0
symfony/deprecation-contracts Version ^3.0
symfony/event-dispatcher-contracts Version ^3.0
symfony/framework-bundle Version ^6.4 || ^7.0
symfony/http-client Version ^6.4 || ^7.0
symfony/http-client-contracts Version ^3.0
symfony/http-foundation Version ^6.4 || ^7.0
symfony/http-kernel Version ^6.4 || ^7.0
symfony/routing Version ^6.4 || ^7.0
ucp-php-sdk/core Version >=0.0.9 <0.1.0