spatie/data-transfer-object
Data transfer objects with batteries included observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2876
- days_rel: n/a
- days_push: 1401
- n_releases_24m: 0
Adoption not part of the score
2227 stars · 187 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PHP library for creating data transfer objects (DTOs) that can be constructed from arrays of serialized data, with support for casting, nested objects, and validation attributes. It has been officially deprecated by Spatie, who recommend migrating to spatie/laravel-data or cuyz/valinor.
Use cases
- create typed data transfer objects in php
- hydrate objects from arrays of serialized data
- cast nested arrays into typed php objects
- map json fields to object properties
- validate dto property values with attributes
When to choose
- maintaining a legacy PHP 8 codebase already using this package
- you want a lightweight, framework-agnostic DTO base class
- you're willing to fork and maintain it yourself
When to avoid
- starting a new project - the package is no longer maintained
- using Laravel - prefer spatie/laravel-data
- you need actively supported DTO mapping - prefer cuyz/valinor
Facets
library · maturity abandoned
serialization developer-tools developer-tools web-development backend php data-transfer-object dto value-objects deprecated spatie
4 sources
- readme: https://github.com/spatie/data-transfer-object · fetched 2026-08-28 · f62f84528980
- homepage: https://spatie.be/open-source · fetched 2026-08-29 · 6ed5abf69535
- site_page: https://spatie.be/docs · fetched 2026-08-29 · 08e024d86d95
- site_page: https://spatie.be/about-us · fetched 2026-08-29 · d3cb88e4b34c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spatie/data-transfer-object | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="spatie/data-transfer-object")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem