spatie/query-string
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/value-object | 0.94 | 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 | |
| spatie/image | 0.94 | 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/typed | 0.93 | 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/once | 0.93 | 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/7to5 | 0.93 | Abandoned. Converts PHP 7.0 code to PHP 5, useful when developing on PHP 7 but deploying to PHP 5. Provides a CLI to convert entire directories and rewrites features like anonymous classes, type hints, return types, and null coalescing. | 177 | 175 | 32 | 47 | 0 | 2.6 | 1.0 | MIT | 8 years ago | |
| spatie/dns | 0.93 | spatie/dns is a PHP package that fetches DNS records via dig. Query all records for a domain or filter by type (A, AAAA, CNAME, MX, TXT, SRV, CAA, SOA, NS, PTR, DNSKEY, NAPTR) and read results through simple record objects. | 613 | 620 | 98 | 199K | 0 | 35.3 | 40.7 | MIT | 1 week ago | |
| spatie/http-status-check | 0.92 | CLI tool to crawl a website and report HTTP status codes for every link. Scan internal and optionally external URLs, control concurrency for speed, and export failing (non-2xx/3xx) links to a file for quick auditing. | 600 | 603 | 85 | 30 | 0 | 6.1 | 0.2 | MIT | 3 years ago | |
| spatie/test-time | 0.92 | Control time in tests with Spatie TestTime—freeze or advance Carbon-based timestamps dynamically for time-sensitive assertions. Simplify testing date-dependent logic by manually adjusting time without altering real-world clocks. Works seamlessly with Carbon’s methods like addYear(), subDay(), or cus... | 208 | 208 | 9 | 245K | 0 | 5.2 | 42.4 | MIT | 2 years 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/temporary-directory | 0.92 | Spatie's PHP package quickly creates, uses, and deletes temporary directories in the system's temp folder. Chainable methods handle custom naming, path helpers, and automatic cleanup of every file inside when the directory is deleted. | 972 | 978 | 49 | 8M | 0 | 26.4 | 60.4 | MIT | 4 months ago | |
| spatie/file-system-watcher | 0.92 | React to file system changes from PHP using Spatie’s watcher powered by Node’s chokidar. Watch one or more paths and run callbacks on create, update, delete, or any change events. Useful for build tools, dev workflows, and background monitoring. | 251 | 251 | 25 | 987K | 0 | 6.2 | 50.1 | MIT | 11 months ago | |
| spatie/fork | 0.92 | Run PHP code concurrently with spatie/fork, which forks the main process into child tasks. Pass multiple closures to run at the same time, then collect results in order. Requires PHP 8 and the pcntl extension, and works in CLI only, not web contexts. | 1,050 | 1,052 | 120 | 306K | 0 | 35.1 | 40.1 | MIT | 2 days ago | |
| spatie/html-element | 0.92 | Generate dynamic HTML in PHP with a hyperscript-style API plus Emmet-like selectors. Build elements and attributes with a simple render helper (often wrapped as el()) to produce nested markup cleanly and programmatically, ideal for small view components. | 192 | 195 | 23 | 1K | 0 | 3.5 | 11.7 | MIT | 4 years ago | |
| spatie/crawler | 0.90 | 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 | 2 months ago | |
| spatie/string | 0.90 | 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/mixed-content-scanner-cli | 0.90 | CLI tool to detect mixed content on HTTPS sites. Crawls pages and reports HTML elements whose URLs use http:// (images, scripts, iframes, forms, etc.). Install via Composer globally and run: mixed-content-scanner scan . | 93 | 93 | 20 | 0 | 0 | 3.8 | — | MIT | 4 years ago | |
| spatie/url | 0.90 | 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/regex | 0.88 | Cleaner, safer wrapper around PHP’s preg_* functions. Provides Regex::match/matchAll/replace with MatchResult objects, easy access to groups, sensible defaults, and callback-based replacements—no by-reference variables or confusing false/null error handling. | 1,121 | 1,133 | 49 | 2M | 0 | 11.6 | 43.8 | MIT | 4 years ago | |
| spatie/backtrace | 0.88 | Spatie's PHP package offers a cleaner alternative to debug_backtrace for working with backtraces. Create a Backtrace instance, get an array of Frame objects, and easily read each frame's file, line number, class, method, arguments, and object. | 438 | 444 | 28 | 9M | 0 | 17.8 | 58.6 | MIT | 7 months ago | |
| spatie/visit | 0.87 | 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 |
How can I help you explore Laravel packages today?