Transport layer
Talred HTTP
A declarative API layer that turns controller attributes into a complete request-to-response pipeline.
What it includes
- Attribute-based routing and middleware
- Validation and typed DTO mapping
- Authorization and service binding
- Resource transformation and response envelopes
Code example
A controller method declares routing, input mapping, service orchestration, and response transformation without becoming a logic container.
final class UserController extends Controller
{
#[Route(path: 'users/{id}', methods: ['GET'], auth: 'sanctum')]
#[Request(GetUserByIdRequest::class, GetUserByIdDTO::class)]
#[Service(GetUserByIdService::class, 'User found.', 200)]
#[Response(UserResource::class)]
public function show() {}
}