# Laravel Data

Laravel package that turns PHP classes into data objects for validation, transformation and TypeScript definitions.


Source: https://findsoftware.frbit.cloud/laravel-data/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://spatie.be/docs/laravel-data/v4/introduction
- repository: https://github.com/spatie/laravel-data
- docs: https://spatie.be/docs/laravel-data/v4/introduction
- plugins: https://spatie.be/docs/laravel-data/v4/third-party-packages
- x: https://x.com/spatie_be
- bluesky: https://bsky.app/profile/spatie.be
- mastodon: https://phpc.social/@spatie
- youtube: https://www.youtube.com/channel/UCoBbei3S9JLTcS2VeEOWDeQ
- instagram: https://www.instagram.com/spatie_be

### Identity

- status: active
- maintainer: Spatie BVBA
- maintainerType: unknown
- parent: unknown
- firstRelease: 2021
- hqCountry: BE

### Kind

- category: library
- hosting: php
- language: php
- runtime: php
- runtimeMin: php 8.1
- basedOn: laravel

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: composer require

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 4
- latestReleaseDate: 2026-10-26

### Adoption

- githubStargazers: 1802
- packagistDownloads: 49863316
- npmWeeklyDownloads: not applicable
- contributors: 178
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 189
- dependentPackages: 229

### Sources

- urls: https://spatie.be/docs/laravel-data/v4/introduction (read 2026-11-16)
- urls: https://api.github.com/repos/spatie/laravel-data (read 2026-11-16)
- urls: https://raw.githubusercontent.com/spatie/laravel-data/main/README.md (read 2026-11-16)
- maintainer: https://spatie.be/privacy (read 2026-11-16)
- hqCountry: https://spatie.be/privacy (read 2026-11-16)
- category: https://spatie.be/docs/laravel-data/v4/introduction (read 2026-11-16)
- basedOn: https://spatie.be/docs/laravel-data/v4/introduction (read 2026-11-16)
- language: https://api.github.com/repos/spatie/laravel-data (read 2026-11-16)
- runtime: https://raw.githubusercontent.com/spatie/laravel-data/4.23.1/composer.json (read 2026-11-16)
- runtimeMin: https://raw.githubusercontent.com/spatie/laravel-data/4.23.1/composer.json (read 2026-11-16)
- license: https://raw.githubusercontent.com/spatie/laravel-data/main/LICENSE.md (read 2026-11-16)
- license: https://api.github.com/repos/spatie/laravel-data (read 2026-11-16)
- licenseModel: https://raw.githubusercontent.com/spatie/laravel-data/main/LICENSE.md (read 2026-11-16)
- installMethod: https://raw.githubusercontent.com/spatie/laravel-data/main/README.md (read 2026-11-16)
- currentMajor: https://api.github.com/repos/spatie/laravel-data/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/spatie/laravel-data/releases (read 2026-11-16)
- firstRelease: https://repo.packagist.org/p2/spatie/laravel-data.json (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/spatie/laravel-data (read 2026-11-16)
- contributors: https://api.github.com/repos/spatie/laravel-data/contributors?per_page=1 (read 2026-11-16)
- packagistDownloads: https://packagist.org/packages/spatie/laravel-data.json (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/spatie%2Flaravel-data (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/spatie%2Flaravel-data (read 2026-11-16)
- urls: https://spatie.be/docs/laravel-data/v4/third-party-packages (read 2026-11-16)

## Notes

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](https://spatie.be/docs/laravel-data/v4/introduction) describes how to define and use the classes.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
