spatie/better-types
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/laravel-html | 0.91 | Generate HTML in Laravel with a clean, readable API. Build elements dynamically and compose them easily, including form fields that automatically pull values from models, session data, or defaults. Includes a convenient Html facade/alias for quick use. | 829 | 839 | 102 | 569K | 0 | 22.4 | 41.2 | MIT | 8 months ago | |
| spatie/laravel-visit | 0.91 | Adds a php artisan visit command to quickly hit any route in your Laravel app and inspect the response. Shows colorized HTML or JSON output plus request results, with options like visiting by route name and logging in a user before the request. | 159 | 160 | 9 | 756 | 0 | 11.0 | 11.1 | MIT | 7 months ago | |
| spatie/laravel-searchable | 0.91 | Structured, case-insensitive search across Eloquent models and other sources. Register models/attributes (or custom search aspects) and get grouped, typed results with titles and URLs—ideal for building unified search pages in Laravel apps. | 1,373 | 1,381 | 110 | 79K | 0 | 25.4 | 25.7 | MIT | 8 months ago | |
| spatie/laravel-sluggable | 0.91 | Generate unique slugs for Eloquent models on create or update via a Sluggable attribute or HasSlug trait. Includes collision suffixes, translatable slugs, and self-healing URLs with 308 redirects. | 1,560 | 1,586 | 190 | 867K | 0 | 43.5 | 44.5 | MIT | 1 week ago | |
| spatie/laravel-translatable | 0.91 | A Laravel trait that makes Eloquent model attributes translatable, storing translations as JSON with no extra table needed. Set and retrieve per-locale values, with fallbacks for missing translations. | 2,459 | 2,486 | 296 | 2M | 0 | 50.0 | 47.5 | MIT | 2 weeks ago | |
| spatie/laravel-export | 0.90 | Laravel Export scans your Laravel app, renders every crawled URL to HTML, and bundles the public directory into a static site saved to disk. Build blogs or sites with familiar Laravel tools, then upload the export to Netlify, GitHub Pages, or any static host—no server required. | 698 | 700 | 63 | 11K | 0 | 32.6 | 19.8 | MIT | 1 week ago | |
| spatie/laravel-multitenancy | 0.90 | An unopinionated Laravel package that makes your app tenant aware. It determines the current tenant per request, handles switching tenants, and supports single or multi-database setups, plus tenant-aware queued jobs and artisan commands. | 1,374 | 1,377 | 185 | 433K | 0 | 43.5 | 40.6 | MIT | 3 days ago | |
| spatie/laravel-site-search | 0.90 | spatie/laravel-site-search crawls and indexes your entire site to create a private Google-like full-text search. It uses a local SQLite FTS5 database by default with no external dependencies, optional Meilisearch support, and concurrent crawling for speed. | 310 | 312 | 25 | 2K | 0 | 23.4 | 12.5 | MIT | 4 months ago | |
| spatie/laravel-fractal | 0.90 | Laravel/Lumen wrapper for League Fractal to transform API data with a fluent, expressive syntax. Supports collections, includes, facades, and helper shortcuts to easily shape Eloquent results into consistent JSON-ready arrays. | 1,903 | 1,924 | 183 | 411K | 0 | 30.2 | 34.0 | MIT | 8 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/laravel-data | 0.88 | 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 | |
| spatie/fractalistic | 0.87 | 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/crawler | 0.87 | 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/ray | 0.87 | 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/schema-org | 0.87 | spatie/schema-org is a fluent PHP builder for all Schema.org types and properties, generated from the official vocabulary. Chain methods to construct structured data and output 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/data-transfer-object | 0.87 | 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 | 620K | 0 | 12.9 | 23.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 | |
| flow-php/types | 0.86 | Flow PHP type system library with typed value objects and type definitions for consistent, safe data handling across the Flow ecosystem. Designed for ETL pipelines, it helps enforce data contracts and reduce runtime type errors. | 2 | 2 | 2 | 62K | 0 | 0.1 | 55.3 | MIT | — | |
| 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 | |
| spatie/string | 0.86 | 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.3 | 23.3 | MIT | 6 months ago |
How can I help you explore Laravel packages today?