dto

Official

Immutable data carriers for clean boundaries.

Authorcodebar-ag
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Readonly data containers with a fromArray factory method to pass structured data between application layers, especially for external API responses and service boundaries.

Core Features & Use Cases

  • Immutable, strongly-typed data objects with a fromArray(array $data): static factory
  • Supports mapping varying API field names (PascalCase, camelCase, snake_case) to properties
  • Keeps business logic out of data containers, ensuring clean data transfer across layers

Quick Start

Create a new readonly class representing a DTO with public properties and a static fromArray method to instantiate it from an API response.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: dto
Download link: https://github.com/codebar-ag/coding-guidelines/archive/main.zip#dto

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.