Search by

ramir1 / laravel-raketa

Performance caching helpers for Laravel: a cached view finder, a cached translation loader, and an optional view-expiry check bypass.

Maintainers

Package info

github.com/ramir1/laravel-raketa

pkg:composer/ramir1/laravel-raketa

Transparency log

Statistics

Installs: 6

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.1 2026-09-05 10:54 UTC

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 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.