Laravel Model Caching

PHP MIT

High-performance Eloquent model caching for Laravel with automatic cache invalidation, relationship-aware caching, query caching, cache tags, and Redis support.

Stars
22
Forks
3
Downloads
2,346
Open Issues
0
Files main

Repository Files

Loading file structure...
composer.json
{
    "name": "ghostcompiler/laravel-model-caching",
    "description": "Relationship-aware Eloquent model caching for Laravel with dependency tracking, cache tags, pagination-safe keys, and opt-in model APIs.",
    "type": "library",
    "license": "MIT",
    "authors": [
        {
            "name": "Ghost Compiler"
        }
    ],
    "require": {
        "php": "^8.1",
        "illuminate/cache": "^10.0|^11.0|^12.0|^13.0",
        "illuminate/console": "^10.0|^11.0|^12.0|^13.0",
        "illuminate/contracts": "^10.0|^11.0|^12.0|^13.0",
        "illuminate/database": "^10.0|^11.0|^12.0|^13.0",
        "illuminate/support": "^10.0|^11.0|^12.0|^13.0"
    },
    "require-dev": {
        "orchestra/testbench": "^8.0|^9.0|^10.0|^11.0",
        "phpunit/phpunit": "^10.0|^11.0|^12.0"
    },
    "autoload": {
        "psr-4": {
            "GhostCompiler\\LaravelModelCaching\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "GhostCompiler\\LaravelModelCaching\\Tests\\": "tests/"
        }
    },
    "extra": {
        "laravel": {
            "providers": [
                "GhostCompiler\\LaravelModelCaching\\ModelCacheServiceProvider"
            ],
            "aliases": {
                "ModelCache": "GhostCompiler\\LaravelModelCaching\\Facades\\ModelCache"
            }
        }
    },
    "scripts": {
        "test": "phpunit",
        "analyse": "find src config tests -name '*.php' -print0 | xargs -0 -n1 php -l"
    },
    "minimum-stability": "stable",
    "prefer-stable": true
}