misaf/vendra-cart-api

API Platform services for the Vendra Cart module

Maintainers

Package info

github.com/misaf/vendra-cart-api

Type:vendra-module

pkg:composer/misaf/vendra-cart-api

Transparency log

Statistics

Installs: 1

Dependents: 1

Suggesters: 0

Stars: 1

Open Issues: 0

v1.10.0 2026-08-01 01:24 UTC

This package is auto-updated.

Last update: 2026-08-01 01:28:49 UTC


README

Authenticated API Platform resources for tenant-scoped Vendra carts.

Features

  • Read-only cart collection and detail endpoints
  • Cart items exposed only through their parent cart relationship
  • Tenant scope inherited from the parent cart query

Requirements

  • PHP 8.3+
  • Laravel 13
  • misaf/vendra-api
  • misaf/vendra-cart

Installation

composer require misaf/vendra-cart-api

The package registers /api/sales/carts. Cart lines are embedded DTOs rather than standalone resources. Sanctum authentication, the resource policy, owner query constraints, and the domain model's tenant scope protect every operation.

Testing

Run the package checks from the package directory:

composer test
composer analyse

License

MIT. See LICENSE.