Download the PHP package tcgunel/ucp-laravel without Composer

On this page you can find all versions of the php package tcgunel/ucp-laravel. 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 ucp-laravel

UCP for Laravel

Expose any Laravel storefront to AI shopping agents through Google's Universal Commerce Protocol (UCP).

Tests PHP Laravel

The Universal Commerce Protocol is the open standard — announced by Google in January 2026 and developed with Shopify, Etsy, Wayfair, Target and Walmart — that lets AI agents (Google AI Mode, Gemini, and others) discover and buy from a store programmatically.

ucp-laravel makes your application UCP-native. You implement small per-capability contracts that map your products and orders onto the UCP schema; the package serves the discovery manifest, the capability endpoints, validation, and the response envelopes.


Capabilities

The package implements the full UCP 2026-04-08 shopping capability surface over the REST binding:

Capability UCP identifier Status
Discovery manifest /.well-known/ucp
Catalog — search / lookup / detail dev.ucp.shopping.catalog
Cart dev.ucp.shopping.cart
Checkout dev.ucp.shopping.checkout
Discount dev.ucp.shopping.discount
Fulfillment dev.ucp.shopping.fulfillment
Order — lookup + webhooks dev.ucp.shopping.order
Identity Linking — OAuth 2.0 dev.ucp.common.identity_linking
AP2 Mandates — agent payments dev.ucp.shopping.ap2_mandate

Security-critical pieces stay in your application, behind contracts: the package never captures payment, never implements an OAuth server, and never owns your signing keys. Checkout completion, the OAuth /oauth2/* endpoints and the ES256 crypto are delegated to provider contracts you implement.

Spec note. UCP is young and its schemas are still moving. This package mirrors the 2026-04-08 revision; treat the JSON shapes as a faithful implementation, not a frozen guarantee. Verify against ucp.dev before going to production.


Requirements

Installation

Once published to Packagist:

While the package is consumed privately across projects, add it as a path or VCS repository — see docs/installation.md.

Publish the config file (optional — the package works with sensible defaults):

The service provider is auto-discovered. The UCP routes are live immediately; each capability stays dormant — and unadvertised in the manifest — until you configure its provider.

Quick start

Each capability is one contract. Start with Catalog — it is read-only and the fastest to ship:

Register it:

Every other capability follows the same shape — implement a contract, register it under its config key. See the guides below.

Endpoints

Method & path Capability
GET /.well-known/ucp discovery manifest
GET /.well-known/oauth-authorization-server · /.well-known/oauth-protected-resource Identity Linking
POST /catalog/search · /catalog/lookup · /catalog/product Catalog
POST /carts · GET·PUT /carts/{id} · POST /carts/{id}/cancel Cart
POST /checkout-sessions · GET·PUT /checkout-sessions/{id} · POST …/complete · …/cancel Checkout
GET /orders/{id} Order

Catalog requests reject malformed input with 422. For cart, checkout and order, business outcomes return 200 with a messages[] array — the UCP convention — while only protocol-level problems use HTTP error statuses. Order-lifecycle updates are pushed to agents as signed webhooks.

How it works

The package owns the protocol — routing, the manifest, request validation, the ucp response envelope, the JSON schema. Your application owns the data, the OAuth server and the crypto, through small contracts. Controllers stay thin; DTOs are immutable; every capability is an interface.

Documentation

Guide Contents
Installation Composer setup, publishing, what gets registered
Configuration Every config/ucp.php key
Catalog provider The catalog contract, the DTOs, money precision
Cart & checkout providers The session contracts, lifecycle, discounts, fulfilment, payment
Order, Identity & AP2 Order webhooks, OAuth discovery, AP2 mandates
Multi-tenancy Per-tenant manifests and capabilities
Manifest reference The /.well-known/ucp JSON structure
Roadmap What's next

Multi-tenancy

The package is built for multi-tenant SaaS. Endpoint URLs in the manifest follow the request host, so per-tenant domains work with zero extra wiring. See docs/multi-tenancy.md.

Testing

The suite runs against Orchestra Testbench; no host application is required.

Code quality

Tool Command Standard
Pint composer lint / composer format Laravel preset + strict types
PHPStan (Larastan) composer analyse Level 8
PHPUnit composer test

composer check runs all three.

Contributing

Bug reports and pull requests are welcome. Please run composer check before opening a PR. See CHANGELOG.md for release history.

License

The MIT License. See LICENSE.

Credits


All versions of ucp-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^11.0 || ^12.0 || ^13.0
illuminate/http Version ^11.0 || ^12.0 || ^13.0
illuminate/routing Version ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^11.0 || ^12.0 || ^13.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 tcgunel/ucp-laravel contains the following files

Loading the files please wait ...