spatie/value-object
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/query-string | 0.94 | Manipulate URLs by building and updating query strings in PHP. Toggle parameters or values, add JSON:API-style filters and sorts, and manage pagination. Useful for generating links and keeping state in apps without manual query parsing. | 161 | 162 | 9 | 19K | 0 | 2.0 | 28.8 | MIT | 5 years ago | |
| spatie/url | 0.94 | 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 | 683K | 0 | 12.5 | 41.0 | MIT | 2 years ago | |
| 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 | 2 days ago | |
| spatie/valuestore | 0.93 | Easily store and retrieve simple key-value data in a JSON file. Valuestore offers a lightweight, framework-friendly API for persisting settings, counters, and small bits of state without needing a database, with atomic writes and optional caching. | 763 | 769 | 47 | 70K | 0 | 9.1 | 27.2 | MIT | 1 year ago | |
| spatie/visit | 0.93 | 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 | 1 | 0 | 7.5 | 0.0 | — | 1 year ago | |
| spatie/once | 0.92 | A tiny PHP helper to run code only once per request. Cache expensive computations or object initialization in a single spot, keyed automatically by the call site. Great for computed properties, accessors, and avoiding duplicate work. | 1,443 | 1,450 | 62 | 326K | 0 | 33.9 | 38.0 | MIT | 2 weeks ago | |
| spatie/fractalistic | 0.92 | Developer-friendly wrapper around League Fractal to transform API data with less boilerplate. Build resources, apply transformers, includes, and output arrays with a fluent API or one-liner syntax. Great for PHP projects; Laravel users may prefer laravel-fractal. | 383 | 385 | 32 | 429K | 0 | 17.2 | 44.3 | MIT | 8 months ago | |
| spatie/ray | 0.92 | spatie/ray sends debug output from any PHP app to Ray, Spatie's desktop debugging app. Dump arrays, HTML, queries, and Markdown, measure performance, pause execution, and inspect output with the same syntax you use across Laravel, JavaScript, and more. | 624 | 627 | 102 | 2M | 0 | 35.7 | 55.7 | MIT | 1 day ago | |
| spatie/macroable | 0.92 | Add methods to any class at runtime with Spatie’s Macroable trait. Register macros with closures or callables and call them like native methods; macros are bound to the class instance for access to $this. Inspired by Laravel’s Macroable implementation. | 731 | 741 | 24 | 3M | 0 | 10.6 | 51.0 | MIT | 9 months ago | |
| spatie/color | 0.92 | PHP library for color parsing, conversion, and comparison. Supports CSS named colors plus RGB/RGBA/ARGB, Hex, HSL/HSLA, HSB, CMYK, CIELab, and XYZ. Includes WCAG contrast ratio and Delta E distances (CIE76, CIE94, CIEDE2000). | 385 | 389 | 41 | 1M | 0 | 16.2 | 50.7 | MIT | 8 months ago | |
| spatie/string | 0.91 | spatie/string is a PHP package for fluent, chainable string handling. Wrap any native string with the string() helper, then chain methods like between, toUpper, and toLower, or use array-style offsets to read and modify individual characters easily. | 559 | 570 | 26 | 20K | 0 | 19.4 | 23.4 | MIT | 6 months ago | |
| spatie/typed | 0.88 | 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 | |
| spatie/data-transfer-object | 0.88 | 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. | 2,221 | 2,236 | 187 | 631K | 0 | 12.9 | 23.9 | MIT | 4 years ago | |
| juststeveking/laravel-data-object-tools | 0.87 | 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 | 74 | 1 | 1.1 | 4.5 | MIT | 2 years ago | |
| bruli/php-value-objects | 0.86 | A lightweight PHP library for building immutable value objects with typed primitive wrappers and validation. bruli/php-value-objects helps enforce domain invariants, reduce primitive obsession, and keep Laravel or any PHP codebase clearer and safer. | 43 | 43 | 13 | 580 | 1 | 0.7 | 15.9 | MIT | — | |
| nicolopignatelli/valueobjects | 0.86 | Laravel-friendly PHP value objects library that helps you model domain concepts as immutable, self-validating objects (like Email, Money, Url, etc.). Encourages DDD patterns, clearer APIs, and safer data handling with consistent validation and comparison. | 0 | 430 | — | 0 | — | 0.0 | — | — | — | |
| spatie/laravel-data | 0.86 | 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 | |
| czim/laravel-dataobject | 0.86 | Lightweight data objects for Laravel: define typed properties, hydrate instances from arrays, and convert them back to arrays or JSON. A simple way to keep request, config, and domain data structured, consistent, and easy to pass around with minimal boilerplate. | 11 | 11 | 0 | 2K | 0 | 0.1 | 30.7 | MIT | — | |
| cerbero/laravel-dto | 0.86 | Cerbero Laravel DTO provides a simple way to define typed data transfer objects in Laravel, with attribute casting, validation, and conversion from arrays, requests, and Eloquent models. It helps keep controllers and services clean by moving data shaping and validation into reusable DTO classes. | 58 | 59 | 2 | 69 | 0 | 0.4 | 4.7 | MIT | — | |
| solido/dto-management | 0.86 | Manage, discover, and enhance DTOs in PHP apps with Solido DTO Management. Provides tools to register and locate DTO classes and apply enhancements consistently across your codebase. Documentation and contribution guides available. | 2 | 2 | 1 | 19 | 0 | 0.1 | 12.0 | MIT | — |
How can I help you explore Laravel packages today?