Laravel Data
Laravel package that turns PHP classes into data objects for validation, transformation and TypeScript definitions.
spatie.be/docs/laravel-data/v4/introductionrepositorydocsplugins
Laravel Data is a PHP package for Laravel that describes data once, as a PHP class that extends the package’s Data class. From that class the package creates data objects from request data and validates them, transforms them into resources like Laravel’s API resources, and generates TypeScript definitions for a frontend. The documentation describes how to define and use the classes.
Identity
Rendering and deploy
- Install with
- composer require3
Releases
Adoption
Sources
- 2026-11-16: links, Categories, Built on
spatie.be/docs/laravel-data/v4/introduction - 2026-11-16: links, Written in, License, GitHub stars
api.github.com/repos/spatie/laravel-data - 2026-11-16: links, Install with
raw.githubusercontent.com/spatie/laravel-data/main/README.md - 2026-11-16: Maintainer, Headquarters
spatie.be/privacy - 2026-11-16: Runtime, Minimum runtime
raw.githubusercontent.com/spatie/laravel-data/4.23.1/composer.json - 2026-11-16: License, License model
raw.githubusercontent.com/spatie/laravel-data/main/LICENSE.md - 2026-11-16: Current major version, Last release
api.github.com/repos/spatie/laravel-data/releases - 2026-11-16: First release
repo.packagist.org/p2/spatie/laravel-data.json - 2026-11-16: Contributors
api.github.com/repos/spatie/laravel-data/contributors?per_page=1 - 2026-11-16: Packagist downloads
packagist.org/packages/spatie/laravel-data.json - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/packagist.org/packages/spatie%2Flaravel-data - 2026-11-16: links
spatie.be/docs/laravel-data/v4/third-party-packages