misaf / vendra-api
API services for the vendra-api module
Package info
Type:vendra-module
pkg:composer/misaf/vendra-api
v1.8.0
2026-07-30 04:37 UTC
Requires
- php: ^8.3
- api-platform/laravel: ^4.3
- illuminate/database: ^13.0
- illuminate/support: ^13.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.8.0
- mockery/mockery: ^1.6.12
- nunomaduro/collision: ^8.9.4
- orchestra/testbench: ^11.1
- pestphp/pest: ^4.7.5
- pestphp/pest-plugin-arch: ^4.0.2
- pestphp/pest-plugin-laravel: ^4.1
- pestphp/pest-plugin-profanity: ^4.2.1
- pestphp/pest-plugin-type-coverage: ^4.0.4
- phpstan/extension-installer: ^1.4.3
README
Shared API Platform infrastructure for Vendra domain API modules.
Features
- A reusable Eloquent provider with filtering and pagination
- Transport-only resource references for cross-package relationships
- Shared API Platform package wiring
- Domain- and tenant-provider-agnostic foundations
Domain API resources, providers, processors, filters, and operations belong in packages such as vendra-product-api, vendra-blog-api, and vendra-custom-page-api.
Public paths follow /api/{navigation-group}/{model}. The group is the stable
slug of the model's Filament cluster (catalog, content, marketing, or
sales), while the model segment is the plural kebab-case Eloquent model name.
For example, Product is exposed at /api/catalog/products.
Requirements
- PHP 8.3+
- Laravel 13
- API Platform for Laravel 4.3
Installation
composer require misaf/vendra-api
The service provider is auto-registered.
Testing
Run the package checks from the package directory:
composer test
composer analyse
License
MIT. See LICENSE.