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/ray | 0.89 | 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 | 2 days ago | |
| spatie/crawler | 0.89 | A powerful PHP package for crawling websites, using Guzzle promises to fetch multiple URLs concurrently. It can render JavaScript via Chrome and Puppeteer, restrict crawls to internal links or depth, collect found URLs, and fake HTTP responses for testing crawl logic. | 2,829 | 2,843 | 368 | 1M | 0 | 52.5 | 41.5 | MIT | 3 months ago | |
| spatie/schema-org | 0.89 | spatie/schema-org is a PHP fluent builder for every Schema.org type and property. Chain readable methods to create structured data and generate valid ld+json script tags for rich search results. | 1,509 | 1,530 | 145 | 548K | 0 | 40.3 | 41.0 | MIT | 1 month ago | |
| spatie/fractalistic | 0.89 | 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 | |
| kiwilan/typescriptable-laravel | 0.88 | — | 39 | 39 | 9 | 2K | 7 | 12.1 | 27.7 | MIT | 1 year ago | |
| spatie/boost-spatie-guidelines | 0.87 | AI-optimized Spatie coding guidelines for Laravel Boost. Installs battle-tested Laravel & PHP standards into your .ai/guidelines folder so AI assistants generate PSR-compliant, convention-driven code (types, naming, control flow, testing) automatically. | 109 | 109 | 3 | 96K | 0 | 8.1 | 43.0 | MIT | 8 months ago | |
| spatie/better-types | 0.87 | 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 | 82 | 5 | 278K | 0 | 9.2 | 51.2 | MIT | 8 months ago | |
| php-standard-library/type | 0.87 | Runtime type validation for PHP built on the Parse, Don't Validate principle: coerce and assert unstructured input into well-typed data, with clear errors when values don't match. | 1 | 1 | 0 | 114K | 0 | 21.4 | 64.8 | MIT | 1 week ago | |
| vistik/typed-collections | 0.87 | A Laravel/PHP package for type-safe collections: enforce element types at runtime, improve IDE and static-analysis support, and keep familiar Collection ergonomics. Define typed collections for models, DTOs, scalars, and custom classes. | 11 | — | 3 | — | 1 | 0.3 | — | — | 9 years ago | |
| spatie/or-else | 0.87 | Adds an OrElse trait that auto-creates “*OrElse” method variants for your class methods. These variants accept a fallback value that’s returned whenever the original method returns null or false, helping you avoid repetitive default-handling code. | 32 | 34 | 4 | 17 | 0 | 0.9 | 2.5 | MIT | 11 years ago | |
| spatie/code-outliner | 0.87 | CLI tool to visualize your code structure by generating outline images of files or directories. Overlay multiple files to spot dense or repetitive areas and improve readability. Requires Puppeteer via spatie/browsershot; install globally via Composer. | 84 | 85 | 3 | 0 | 0 | 1.7 | — | MIT | 8 years ago | |
| tdn/php-types | 0.87 | A small PHP utility for working with types: safely cast values, validate data against expected types, and normalize scalars, arrays and objects. Lightweight and framework-agnostic, it drops easily into Laravel or any Composer project. | 7 | 8 | 0 | 45 | 0 | 0.0 | 8.0 | NOASSERTION | 11 years ago | |
| spatie/value-object | 0.87 | 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 | |
| typhoon/type | 0.86 | Typhoon Type provides an object abstraction over PHP’s modern type system for building tools that understand complex types. Define, print (stringify), and work with array shapes, object types, non-empty lists, and more in a consistent API. | 66 | 66 | 2 | 9K | 2 | 16.0 | 32.8 | MIT | 6 months ago | |
| diephp/laravel-resources-typescript | 0.86 | — | 3 | 3 | 0 | 91 | 0 | 0.1 | 19.0 | MIT | — | |
| spatie/laravel-package-tools | 0.86 | PackageServiceProvider base class for Laravel packages that simplifies registering config files, migrations, views, translations, routes, commands, assets, and view components, with publishable resources and a configurable install command. | 951 | 963 | 164 | 15M | 0 | 37.4 | 64.0 | MIT | 1 month ago | |
| spatie/string | 0.86 | 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 | |
| easyframework/generics | 0.86 | EasyFramework Generics provides lightweight generic-style typing and reusable collection helpers for Laravel and PHP projects. It helps reduce duplication, improve clarity, and simplify common data-handling tasks with framework-friendly APIs and straightforward setup. | 2 | 0 | 0 | 9K | 0 | 0.0 | 33.7 | — | 10 years ago | |
| rector/type-perfect | 0.86 | Type Perfect adds 10 PHPStan rules to tighten type declarations: replace empty/isset checks with instanceof for precise narrowing, prefer explicit getters over magic array access, and enforce interface signatures. Easy to enable even on legacy code; improves reliability fast. | 105 | 105 | 7 | 403K | 0 | 10.5 | 43.6 | MIT | 3 months ago | |
| typesense/typesense-php | 0.86 | Official PHP client for the Typesense API. Install via Composer with a HTTPlug-compatible HTTP client, then search, index, and manage collections using full Typesense features. Includes filter value escaping and compatibility notes for server versions. | 273 | 274 | 55 | 756K | 1 | 22.2 | 51.5 | Apache-2.0 | 6 months ago |
How can I help you explore Laravel packages today?