All Projects → czim → laravel-localization-route-cache

czim / laravel-localization-route-cache

Licence: MIT license
Translated Route Caching Solution for Laravel Localization

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-localization-route-cache

react-i18next-phraseapp
Library support to use react-i18next with the Phrase In-Context Editor - DEPRECATED
Stars: ✭ 14 (-71.43%)
Mutual labels:  localization, deprecated
varnish-geoip-plugin
GeoIP plugin for Varnish
Stars: ✭ 18 (-63.27%)
Mutual labels:  deprecated
EFCache
Second Level Cache for Entity Framework 6.1
Stars: ✭ 97 (+97.96%)
Mutual labels:  caching
HEAPUtil
Code for the RA-L (IROS) 2021 paper "A Hierarchical Dual Model of Environment- and Place-Specific Utility for Visual Place Recognition"
Stars: ✭ 46 (-6.12%)
Mutual labels:  localization
stash
Key-value store abstraction with plain and cache driven semantics and a pluggable backend architecture.
Stars: ✭ 71 (+44.9%)
Mutual labels:  caching
SOLocalization
Configure multi-language environment in iOS application
Stars: ✭ 13 (-73.47%)
Mutual labels:  localization
ReaperJPN-Phroneris
製品版REAPER日本語化パッチ(森)
Stars: ✭ 41 (-16.33%)
Mutual labels:  localization
rocketnative-sublime-snippets
[DEPRECATED] Rocketseat React Native snippets for Sublime Text Editor
Stars: ✭ 16 (-67.35%)
Mutual labels:  deprecated
java-core
Collections of solutions for micro-tasks created while building modules as part of project. Also has very fun stuffs :)
Stars: ✭ 35 (-28.57%)
Mutual labels:  caching
cachegrand
cachegrand is an open-source fast, scalable and secure Key-Value store, also fully compatible with Redis protocol, designed from the ground up to take advantage of modern hardware vertical scalability, able to provide better performance and a larger cache at lower cost, without losing focus on distributed systems.
Stars: ✭ 87 (+77.55%)
Mutual labels:  caching
laravel-translate
Generate translation files for Laravel using Google Translate
Stars: ✭ 22 (-55.1%)
Mutual labels:  localization
french
French language pack to localize the Flarum forum software plus its official and third-party extensions.
Stars: ✭ 17 (-65.31%)
Mutual labels:  localization
HTTPClient.jl
DEPRECATED, USE HTTP.jl INSTEAD
Stars: ✭ 17 (-65.31%)
Mutual labels:  deprecated
Lingo-Vapor
Vapor provider for Lingo - the Swift localization library
Stars: ✭ 45 (-8.16%)
Mutual labels:  localization
django-cached-modelforms
🌟 ModelChoiceField implementation that can accept lists of objects, not just querysets
Stars: ✭ 14 (-71.43%)
Mutual labels:  caching
DailyBugle
📰Modern MVVM Android application following single activity architecture which fetches news from 🕷️ news API. this repository contains some best practices ⚡ of android development
Stars: ✭ 17 (-65.31%)
Mutual labels:  caching
codac
Codac is a library for constraint programming over reals, trajectories and sets.
Stars: ✭ 31 (-36.73%)
Mutual labels:  localization
endorphin
Key-Value based in-memory cache library which supports Custom Expiration Policies
Stars: ✭ 14 (-71.43%)
Mutual labels:  caching
open-pos
Open Source Point of Sale System.
Stars: ✭ 52 (+6.12%)
Mutual labels:  deprecated
koa-cache-lite
Zero-dependency koa router cache
Stars: ✭ 27 (-44.9%)
Mutual labels:  caching

Translated Route Caching Solution for Laravel Localization

Software License

Important: This solution has been merged into mcamara/laravel-localization since version 1.3.11. This package is no longer required!

A cobbled together fix to allow caching routes per locale for mcamara's laravel localization.

See the github issue related to this fix in the original package.

This has been tested with laravel 5.1 through 5.6.

Version Compatibility

Laravel Package
5.1.x 0.8.x
5.2.x and up 0.9.x

Change log

View the change log.

Install

Via Composer

$ composer require czim/laravel-localization-route-cache

If you don't use auto-discovery, add the service provider after mcamara's in your config/app.php:

    Mcamara\LaravelLocalization\LaravelLocalizationServiceProvider::class,
    Czim\LaravelLocalizationRouteCache\LaravelLocalizationServiceProvider::class,

In your App's RouteServiceProvider, use the LoadsTranslatedCachedRoutes trait:

class RouteServiceProvider extends ServiceProvider
{
    use \Czim\LaravelLocalizationRouteCache\Traits\LoadsTranslatedCachedRoutes;

Usage

To cache your routes, use

    php artisan route:trans:cache

instead of the normal route:cache command.

To list the routes for a given locale, use

    php artisan route:trans:list {locale}
    
    # for instance:
    php artisan route:trans:list en

To clear cached routes for all locales, use

    php artisan route:trans:clear

Note that using route:clear will also effectively unset the cache (at the minor cost of leaving some clutter in your bootstrap/cache directory).

Credits

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].