Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Data Transfer Object Laravel Package

spatie/data-transfer-object

PHP 8+ data transfer objects with “batteries included”: map and cast input arrays into typed DTOs, validate via attributes, and handle nested objects/collections. Note: package is deprecated; consider spatie/laravel-data or cuyz/valinor.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
spatie/image 0.93 spatie/image provides an expressive, chainable PHP API for common image manipulation. Resize to fit a bounding box without altering aspect ratio, apply greyscale, adjust brightness and quality, rotate, sharpen, and save or overwrite images in just a few lines. Ideal for Laravel and PHP apps. 1,367 1,389 143 4M 0 40.9 56.6 MIT 3 days ago
View on GitHub
Context7
spatie/visit 0.91 Human-friendly curl for the terminal. Visit any URL and display its response with colorized output (HTML via bat, JSON via jq), plus status code and response time. Supports custom HTTP methods and options like following redirects. 390 390 14 2 0 7.5 0.0 — 1 year ago
View on GitHub
spatie/value-object 0.88 Deprecated Spatie package for PHP 8+ data transfer objects. Create typed DTOs from arrays with casting, validation, and attribute mapping (e.g., nested keys). Consider migrating to spatie/laravel-data or cuyz/valinor. 2,221 2,223 187 0 0 12.9 — MIT 4 years ago
View on GitHub
spatie/url 0.88 Immutable URL parser/builder for PHP. Parse scheme, host, path and query, then fluently transform parts (withHost, withPath, withScheme) and manage query parameters. Supports allowed/sanitized schemes for safer URL handling. 738 751 59 679K 0 12.4 40.9 MIT 2 years ago
View on GitHub
Context7
dragon-code/simple-dto 0.86 Lightweight PHP DTO helper: define simple DataTransferObject classes, build instances via make(), map nested input keys to properties, and (optionally) cast values. Supports upgrade paths from older package names. Note: author recommends spatie/laravel-data instead. 9 9 2 16K 0 2.6 31.4 MIT 2 years ago
View on GitHub
Context7
juststeveking/laravel-data-object-tools 0.85 Handy tools and helpers for working with data objects in Laravel. Simplifies creating, validating, transforming, and casting DTOs, helping you keep application data flow clean, type-safe, and consistent across your codebase. 66 66 9 70 1 1.1 4.3 MIT 2 years ago
View on GitHub
tenantcloud/data-transfer-objects 0.85 A lightweight PHP package for defining typed data transfer objects, making it easy to move structured data between layers of your Laravel application with clear, validated, and reusable DTO classes. 4 4 1 2K 0 0.1 35.5 MIT 1 year ago
View on GitHub
cocur/vale 0.85 cocur/vale is a lightweight PHP value validation library. Define reusable rules to validate strings, numbers, arrays, and objects, and get clear, consistent results without pulling in a full framework—handy for DTOs, APIs, and input sanitization. 14 14 1 3K 0 0.7 32.1 MIT 11 years ago
View on GitHub
Context7
spatie/laravel-data 0.85 Spatie Laravel Data lets you define rich data objects once and reuse them as form requests, API transformers, and TypeScript definitions. It supports automatic validation, resource transformation, lazy properties, and constructing objects from request data. 1,801 1,815 293 4M 6 51.4 63.7 MIT 1 week ago
View on GitHub
Context7
dragon-code/simple-data-transfer-object 0.85 A lightweight Data Transfer Object package for Laravel/PHP that simplifies creating typed DTOs from arrays or requests, with convenient property casting and conversion back to arrays. Ideal for clean, structured data handling. 9 8 2 43 0 0.1 7.1 MIT 2 years ago
View on GitHub
spatie/laravel-resource-endpoints 0.85 Abandoned package that adds controller-based “links” and collection “meta” links to Laravel API Resources. Automatically generates URLs for actions like index/show/edit/update/delete, so resources can expose REST endpoints without manually building routes. 239 239 13 0 0 2.6 — MIT 5 years ago
View on GitHub
spatie/laravel-migrate-fresh 0.85 Adds a migrate:fresh Artisan command to drop all database tables and rebuild from migrations, even if you don’t implement down() methods. Supports MySQL, SQLite, PostgreSQL, and SQL Server. (Built into Laravel 5.5+) 182 181 23 314 0 3.4 4.2 MIT 8 years ago
View on GitHub
spatie/7to5 0.85 Abandoned. Converts PHP 7.0 code to PHP 5, useful when developing on PHP 7 but deploying to PHP 5. Provides a CLI to convert entire directories and rewrites features like anonymous classes, type hints, return types, and null coalescing. 177 175 32 46 0 2.6 1.0 MIT 8 years ago
View on GitHub
spatie/php-cloneable 0.85 Trait for PHP 8.1+ that makes objects with readonly properties cloneable. Safely “clone with changes” by copying an object while overriding readonly fields—handy until PHP gets native clone-with support. 97 98 7 207K 0 1.6 45.9 MIT 2 years ago
View on GitHub
spatie/spatie-content-api 0.84 Laravel/PHP package powering Spatie’s promotional-site content API. Fetch posts for a product or project (e.g., mailcoach) via a simple ContentApi facade and expose consistent, reusable content to your frontend or other services. 5 5 2 2K 0 6.4 35.0 MIT 1 year ago
View on GitHub
spatie/laravel-export 0.84 Turn a Laravel app into a static site bundle. Laravel Export crawls every URL, renders HTML pages, copies your public assets, and saves a ready-to-host export with one artisan command—ideal for blogs and admin-managed sites published to static hosting. 698 700 63 11K 0 32.6 19.8 MIT 1 week ago
View on GitHub
Context7
spatie/laravel-blade-x 0.84 Blade-X brings Blade-style HTML components to Laravel 6 and below, letting you use tags like instead of @include. Package is abandoned because Laravel 7+ has native Blade components; migrate when upgrading. 518 530 35 1K 0 6.0 4.9 MIT 6 years ago
View on GitHub
spatie/string 0.84 Spatie's String package offers fluent, chainable string handling for PHP. Wrap native strings with the string() helper, then manipulate them using methods like between, toUpper, toLower, and offset access for cleaner, more readable code. 559 570 26 20K 0 19.3 23.3 MIT 6 months ago
View on GitHub
spatie/laravel-personal-data-export 0.84 Generate GDPR-style personal data exports as ZIP files in Laravel. Define what to include via a model method, add JSON and files (local or S3), store zips privately, email users a download link, and clean up old exports with an artisan command. 546 549 29 21K 0 32.5 26.0 MIT 1 day ago
View on GitHub
spatie/typed 0.84 Userland improved PHP type system with type inference and runtime checking: generics, union types, typed collections/lists, tuples, and structs. Proof-of-concept package from Spatie to add stronger type guarantees without language-level support. 316 317 15 18 0 1.9 0.2 MIT 5 years ago
View on GitHub
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
marcelgwerder/laravel-api-handler
firebrikdotcom/conveyor-laravel-broadcaster
kanata-php/conveyor-laravel-broadcaster
alish/short-message
sonrac/lumen-league-oauth2
pushery/sanctum-hardening-for-laravel
evanschleret/laravel-uuidable
yigit-serin/laravel-openvidu
adachsoft/command-executor-lib
tagixo/document-builder
tagixo/page-builder
tagixo/mail-builder
tagixo/form-builder
tagixo/core
adachsoft/cli-process-tester
adachsoft/changelog-linter
adachsoft/collection
adachsoft/php-code-style
adachsoft/api-version-bundle
cgv/localized-resource