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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| elasticms/helpers | 0.85 | — | 0 | 0 | 0 | 121 | 0 | 32.0 | 33.7 | LGPL-3.0 | 4 weeks ago | |
| carthage-software/mago | 0.85 | Mago is an extremely fast PHP linter, formatter, and static analyzer written in Rust. It helps teams catch issues early, enforce consistent style, and improve code quality across projects, with multiple install options like script, Homebrew, Composer, and Cargo. | 3,320 | 3,309 | 167 | 227K | 63 | 74.0 | 60.4 | Apache-2.0 | 3 days ago | |
| symfony/type-info | 0.85 | Symfony TypeInfo extracts and models PHP type information from reflections and type strings. Resolve scalars, objects, enums, generics, lists, and nullable types via TypeResolver, inspect identifiers and constraints, and stringify types like Collection. | 200 | 200 | 3 | 7M | 0 | 30.7 | 63.7 | MIT | 1 month ago | |
| sebastian/type | 0.84 | sebastian/type provides lightweight value objects for representing and working with PHP’s type system (built-in, class, union, intersection, nullable, etc.). Useful for static analysis tools, reflection helpers, and test utilities that need precise type modeling. | 1,503 | 1,504 | 13 | 14M | 1 | 28.3 | 62.6 | BSD-3-Clause | 2 months ago | |
| feature-ninja/cva | 0.83 | PHP implementation of Class Variance Authority (cva) for building composable CSS class strings. Define base classes, variants, compound variants, and defaults, then generate Tailwind-friendly class names via ClassVarianceAuthority or the cva() helper. | 18 | 18 | 1 | 857 | 0 | 2.9 | 24.0 | MIT | 11 months ago | |
| 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 | |
| kiwilan/typescriptable-laravel | 0.83 | — | 39 | 39 | 9 | 2K | 7 | 12.1 | 26.6 | MIT | 1 year ago | |
| php-standard-library/type | 0.82 | 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 | 34K | 0 | 19.1 | 63.9 | MIT | 1 month ago | |
| arty/php-coding-standard | 0.82 | — | 2 | 3 | 0 | 14 | 0 | 11.8 | 12.5 | MIT | 6 months ago | |
| open-southeners/extended-php | 0.82 | Extended PHP helpers for modern apps: adds convenient functions, utilities, and small enhancements that complement core PHP to reduce boilerplate and speed up everyday development. Lightweight, easy to drop into existing projects. | 0 | 0 | 0 | 175 | 0 | 13.3 | 32.7 | MIT | 8 months ago | |
| shipmonk/phpstan-rules | 0.82 | 40 super-strict PHPStan rules from ShipMonk to plug gaps in extra-strict setups. Install via Composer, include rules.neon, then enable/disable or tune rules per-project. Targets tricky PHP edge cases like unsafe comparisons, casts, arrays, enums and more. | 155 | 154 | 23 | 211K | 1 | 28.4 | 50.9 | MIT | 2 months ago | |
| phpstan/php-8-stubs | 0.81 | Stub files for PHP 8 built-in functions, classes, and extensions, maintained for PHPStan. Improves static analysis and type inference by providing accurate signatures and phpDoc where native reflection is incomplete or inconsistent. | 31 | 31 | 11 | 333K | 4 | 28.7 | 65.9 | MIT | 1 month 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,502 | 1,511 | 145 | 365K | 0 | 39.1 | 38.0 | MIT | 1 month ago | |
| diephp/laravel-resources-typescript | 0.81 | — | 3 | 3 | 0 | 48 | 0 | 0.0 | 15.4 | MIT | — | |
| spatie/laravel-tags | 0.80 | Add flexible tagging to Laravel Eloquent models with the HasTags trait. Create, attach, detach, and query tags with ease, with built-in support for tag types, translations, and sorting—ideal for organizing content across your app. | 1,745 | 1,764 | 285 | 514K | 0 | 45.5 | 39.7 | MIT | 1 month 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 | 187 | 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 | 17 | 0 | 1.9 | 0.7 | 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 | 187 | 476K | 0 | 12.9 | 22.7 | 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. | 82 | 81 | 5 | 218K | 0 | 16.3 | 52.6 | MIT | 5 months ago |
How can I help you explore Laravel packages today?