spatie/typed
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/php-type-graph | 0.83 | Build a graph of all PHP types in your project. Analyze classes, interfaces, enums, and their relationships to understand your codebase structure, dependencies, and type usage. Useful for architecture insights, tooling, and visualization (WIP). | 10 | 9 | 4 | 0 | 0 | 0.7 | — | MIT | 2 years ago | |
| spatie/schema-org | 0.81 | Fluent PHP builder for the full Schema.org vocabulary. Create Schema.org types and properties via chainable methods and output valid JSON-LD/ld+json scripts for SEO. Auto-generated from Schema.org standards for complete coverage. | 1,490 | 1,510 | 144 | 309K | 1 | 39.5 | 37.0 | MIT | 1 month ago | |
| crudly/testly | 0.81 | A simple test package placeholder for crudly/testly. Currently contains minimal scaffolding and documentation (“This is a test”) and may be used for experimentation or as a starting point for future CRUD-related tooling. | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 6 years ago | |
| php-standard-library/type | 0.80 | Runtime type validation for PHP using “Parse, Don’t Validate”: coerce and assert unstructured input into well-typed data. Useful for APIs, configs, and user input with clear parsing rules, assertions, and predictable failures. | 1 | 1 | 0 | 31K | 0 | 21.2 | 64.8 | MIT | 1 week ago | |
| spatie/value-object | 0.80 | 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,227 | 2,179 | 189 | 0 | 0 | 12.9 | — | MIT | 3 years ago | |
| spatie/laravel-tinker-tools | 0.80 | Enables using short class names in Artisan Tinker sessions on older Laravel versions (built into Laravel 5.5+). Register ShortClassNames in .psysh.php and dump optimized autoload, then reference models like NewsItem::first() without full namespaces. | 138 | 142 | 11 | 3 | 0 | 1.9 | 0.1 | MIT | 8 years ago | |
| spatie/data-transfer-object | 0.80 | 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,227 | 2,192 | 189 | 509K | 0 | 12.9 | 23.0 | MIT | 3 years ago | |
| spatie/one-package-to-rule-them-all | 0.79 | Pulls in all Spatie packages at once so you don’t have to require them individually. Install via Composer, optionally publish the config, and get the full Spatie “magic” in one go for your Laravel app. | 60 | 60 | 6 | 0 | 0 | 0.8 | — | MIT | 5 years ago | |
| spatie/better-types | 0.79 | Reflection-powered type checking for PHP: verify whether a ReflectionType or method signature accepts given arguments (including unions/nullables and named params). Useful for dispatching/overload-like method selection and safer dynamic calls. | 81 | 81 | 5 | 215K | 0 | 17.6 | 53.2 | MIT | 3 months ago | |
| spatie/async | 0.77 | Run PHP tasks in parallel with a simple Pool API built on PCNTL. Add closures, handle results via then/catch, and wait for completion. Ideal for speeding up batch jobs, CPU-heavy work, and IO-bound processing with multiple processes. | 0 | 2,826 | — | 175K | — | 42.2 | 27.9 | — | — | |
| spatie/laravel-data | 0.74 | Create rich, typed data objects for Laravel that replace form requests and API transformers. Automatically map from requests, validate with inferred rules, transform to resources (with lazy/partial fields), and generate TypeScript definitions from the same source. | 1,757 | 1,760 | 282 | 2M | 3 | 47.5 | 49.2 | MIT | 4 weeks ago |
How can I help you explore Laravel packages today?