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/period | 0.91 | 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,694 | 1,697 | 76 | 150K | 0 | 19.8 | 27.0 | MIT | 3 years ago | |
| 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. | 739 | 752 | 60 | 413K | 0 | 12.4 | 37.9 | 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 | 186K | 0 | 5.0 | 42.1 | MIT | 2 years ago | |
| spatie/laravel-blink | 0.78 | 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 | 47K | 0 | 21.6 | 38.3 | MIT | 3 months ago | |
| illuminate/cache | 0.76 | — | 129 | 136 | 25 | 459K | 0 | 1.4 | 49.0 | MIT | — | |
| 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,293 | 4,291 | 16 | 14K | 1 | 22.0 | 8.8 | 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 | 78 | 4 | 7K | 0 | 21.7 | 30.0 | MIT | 3 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 | 149K | 0 | 5.2 | 39.4 | MIT | 2 years ago | |
| spatie/laravel-tinker-tools | 0.73 | 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 | 3 | 0 | 1.9 | 0.1 | MIT | 8 years ago | |
| spatie/phpunit-snapshot-assertions | 0.72 | Add snapshot testing to PHPUnit. Assert strings, JSON, arrays, and objects against saved snapshots; first run writes snapshots, later runs compare and fail on regressions. Simple trait-based API (e.g., assertMatchesJsonSnapshot) for PHP and Laravel projects. | 695 | 698 | 74 | 579K | 0 | 33.4 | 46.9 | MIT | 1 month ago |
How can I help you explore Laravel packages today?