Looking to hire Laravel developers? Try LaraJobs

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.
Last update
2026/09/05 12:54 (dev-master)
License
Downloads
6

Comments
comments powered by Disqus

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 requests
  • TranslationCachingLoader — caches translation groups per namespace+group+locale, tagged with raketa:translations
  • Skip view expiry — disables view.check_cache_timestamps to skip the filemtime comparison on every render
  • php artisan raketa:cache:clear — clears the caches above (--views / --translations to 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.