laravel-raketa maintained by ramir1
Description
Performance caching helpers for Laravel: a cached view finder, a cached translation loader, and an optional view-expiry check bypass.
Author
Last update
2026/09/05 12:54
(dev-master)
License
Downloads
6
Tags
Laravel Raketa
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.