misaf / vendra-cart-api
API Platform services for the Vendra Cart module
v1.10.0
2026-08-01 01:24 UTC
Requires
- php: ^8.3
- illuminate/support: ^13.0
- misaf/vendra-api: v1.10.0
- misaf/vendra-cart: v1.10.0
- spatie/laravel-package-tools: ^1.93.1
Requires (Dev)
- fakerphp/faker: ^1.24.1
- larastan/larastan: ^3.10.0
- laravel/boost: ^2.4.12
- laravel/pint: ^1.29.3
- misaf/vendra-testing: v1.10.0
- mockery/mockery: ^1.6.12
- nunomaduro/collision: ^8.9.4
- orchestra/testbench: ^11.1
- pestphp/pest: ^5.0
- pestphp/pest-plugin-arch: ^5.0
- pestphp/pest-plugin-laravel: ^5.0
- pestphp/pest-plugin-profanity: ^5.0
- pestphp/pest-plugin-type-coverage: ^5.0
- phpstan/extension-installer: ^1.4.3
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-apimisaf/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.