spatie/once
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/url | 0.86 | 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. | 741 | 754 | 60 | 537K | 0 | 12.4 | 39.5 | MIT | 2 years ago | |
| spatie/blink | 0.81 | spatie/blink is a tiny in-memory cache for PHP apps. Store values for the current request to avoid repeated work like duplicate queries or expensive calculations. Simple API, no persistence—perfect for per-request memoization in Laravel and beyond. | 167 | 167 | 18 | 266K | 0 | 5.0 | 44.2 | MIT | 3 years ago | |
| spatie/period | 0.81 | Immutable date period objects for PHP with powerful comparison tools. Create periods from any DateTime (including Carbon), then calculate overlaps, gaps, intersections, differences, containment, and other complex comparisons across two or many periods. | 1,699 | 1,702 | 76 | 190K | 0 | 19.8 | 28.4 | MIT | 3 years ago | |
| spatie/laravel-blink | 0.79 | Request-scoped in-memory cache for Laravel. Use the blink() helper or facade to store and retrieve values for the duration of a single request, with helpers like once(), get/put, wildcard key prefixes, increment, forget/flush, plus ArrayAccess and Countable support. | 162 | 163 | 14 | 54K | 0 | 18.7 | 38.3 | MIT | 7 months ago | |
| aimeos/map | 0.76 | High-performance e-commerce framework for Laravel/Lumen (and other PHP apps). Provides products, catalog, basket, checkout, customers, orders and admin UI. Extensible via plugins, supports multiple shops/sites, currencies and languages, and scales well. | 4,324 | 4,321 | 16 | 15K | 1 | 22.2 | 9.1 | MIT | — | |
| spatie/pest-expectations | 0.76 | Add expressive, chainable expectations to Pest tests with Spatie’s helpers. Provides handy assertion-style methods for cleaner, more readable tests, letting you validate values, types, strings, arrays, and more with minimal boilerplate. | 79 | 79 | 4 | 7K | 0 | 17.1 | 29.1 | MIT | 7 months ago | |
| spatie/test-time | 0.74 | 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 | 178K | 0 | 5.2 | 40.5 | MIT | 2 years ago | |
| spatie/phpunit-snapshot-assertions | 0.72 | Add snapshot testing to PHPUnit. Save expected output (JSON, arrays, strings, etc.) on first run and automatically compare on later runs to catch regressions with minimal assertions. Includes handy traits and snapshot update workflow for tests. | 697 | 701 | 74 | 740K | 0 | 28.4 | 46.7 | MIT | 4 months ago | |
| spatie/fractalistic | 0.71 | 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. | 385 | 386 | 33 | 307K | 0 | 21.9 | 43.6 | MIT | 7 months ago | |
| spatie/array-functions | 0.71 | Handy PHP array utilities from Spatie. Adds small, focused functions in the Spatie namespace (e.g., array_rand_value to pick a random value) to complement built-in array helpers. Install via Composer and use directly in your code. | 245 | 248 | 39 | 1K | 0 | 6.6 | 11.6 | MIT | 1 year ago | |
| spatie/value-object | 0.71 | 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 | 11 | 0 | 12.9 | 0.1 | MIT | 4 years ago | |
| spatie/async | 0.71 | 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. | 2,815 | 2,830 | 184 | 171K | 0 | 37.4 | 26.7 | MIT | 7 months ago |
How can I help you explore Laravel packages today?