ramir1 / laravel-raketa
Performance caching helpers for Laravel: a cached view finder, a cached translation loader, and an optional view-expiry check bypass.
Requires
- php: ^8.2
- illuminate/cache: ^11.0|^12.0|^13.0
- illuminate/console: ^11.0|^12.0|^13.0
- illuminate/contracts: ^11.0|^12.0|^13.0
- illuminate/filesystem: ^11.0|^12.0|^13.0
- illuminate/support: ^11.0|^12.0|^13.0
- illuminate/translation: ^11.0|^12.0|^13.0
- illuminate/view: ^11.0|^12.0|^13.0
Requires (Dev)
- larastan/larastan: ^2.0|^3.0
- laravel/pint: ^1.0
- orchestra/testbench: ^9.0|^10.0|^11.0
- pestphp/pest: ^3.0|^4.0
- pestphp/pest-plugin-laravel: ^3.0|^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-05 11:00:15 UTC
README
English · Русский
Performance caching helpers for Laravel: a cached view finder, a cached translation
loader, and an optional bypass of Blade's filemtime expiry check.
Installation
composer require ramir1/laravel-raketa
The RaketaServiceProvider is auto-discovered.
Configuration
Publish the config file:
php artisan vendor:publish --tag=raketa-config
Enable everything with a single flag in .env:
RAKETA_ENABLED=true
CACHE_DRIVER must not be array — it isn't persisted between requests, so the
cached view finder and translation loader would have nothing to reuse.
Features
CachingViewFinder— caches the "view name → path" mapping across requestsTranslationCachingLoader— caches translation groups per namespace+group+locale, tagged withraketa:translations- Skip view expiry — disables
view.check_cache_timestampsto skip thefilemtimecomparison on every render php artisan raketa:cache:clear— clears the caches above (--views/--translationsto target just one)
See docs/README.md (Russian) for an in-depth explanation of
each cache's key structure and internals.
Testing
composer test
composer pint
composer phpstan
License
MIT. See LICENSE.