Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Mock Cache Laravel Package

kodus/mock-cache

Drop-in mock cache for Laravel tests. Swap the real cache for a lightweight fake that records reads, writes, and forgets so you can assert keys, values, and TTLs without touching Redis, Memcached, or the filesystem. Keeps tests fast, deterministic, and free of flaky cache state.

Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
m6web/redis-mock 0.80 — 84 84 58 60K 15 15.5 43.5 MIT 3 years ago
View on GitHub
mpyw/laravel-database-mock 0.78 Experimental Laravel package that mocks underlying PDO connections with Mockery, letting you stub SELECT, INSERT, and UPDATE queries and results for fast, database-free tests. Requires PHP 8.2+ and Laravel 11+. 6 6 0 1K 0 13.2 33.9 MIT 4 months ago
View on GitHub
reecem/mocker 0.78 A lightweight Laravel-friendly mocking helper for PHP tests. Quickly define and swap mocks, set expectations, and control return values to simplify unit and feature testing. Designed to reduce boilerplate and keep test setup clean and readable. 7 7 16 2K 2 4.3 33.2 MIT 3 years ago
View on GitHub
beste/in-memory-cache 0.78 A PSR-6 in-memory cache for PHP that works as a sensible default implementation and in tests. It supports PSR-20 clocks, including frozen clocks, so you can test time-based expiry without a real cache server. Simple, fast, and dependency-free. Install with composer require beste/in-memory-cache. 26 26 0 2M 0 18.9 63.2 MIT 2 months ago
View on GitHub
smorken/array-cache 0.77 A lightweight in-memory array cache driver for Laravel. Store and retrieve cached values in a simple PHP array, ideal for testing, per-request caching, and avoiding external cache backends during development. 0 0 — 186 — 0.0 31.4 — —
View on GitHub
daika7ana/laravel-model-cache 0.77 Laravel Model Cache adds transparent query-result caching to Eloquent models, automatically invalidating cached data when models are created, updated, or deleted. Simple trait-based setup with configurable TTLs helps cut database load without changing your existing model code. 0 0 0 8 0 20.0 15.5 MIT 1 week ago
View on GitHub
josiasmontag/laravel-redis-mock 0.77 Drop-in Redis mock for Laravel tests using Redis PHP Mock. Adds a “mock” Redis client so you can run test suites without a running Redis server. Enable via REDIS_CLIENT=mock in .env.testing/phpunit.xml; works with Testbench for package dev. 48 48 11 39K 2 9.2 42.1 MIT 8 months ago
View on GitHub
swayok/alternative-laravel-cache 0.77 A drop-in alternative cache for Laravel that brings tag support to file and database stores, so Cache::tags() works with any driver—no Redis or Memcached required—while keeping the familiar Laravel cache API. 201 — 34 — 3 22.3 0.4 MIT 2 weeks ago
View on GitHub
cache/integration-tests 0.76 Integration test suite for validating PSR-6 cache pools, taggable cache pools, and PSR-16 simple caches against PHP-FIG rules. Install as a dev dependency and extend the provided PHPUnit base tests to verify your cache implementation. 41 41 36 66K 1 24.5 50.2 MIT 2 months ago
View on GitHub
cache/array-adapter 0.76 In-memory PSR-6 and PSR-16 cache pool for tests and short-lived scripts, with tags, hierarchical keys, and an optional item limit. Values last only for the current PHP process. 56 57 15 74K 0 21.5 49.3 MIT 2 months ago
View on GitHub
noeldemartin/laravel-dusk-mocking 0.76 Laravel Dusk Mocking lets you mock classes and services inside Laravel Dusk browser tests, where ordinary mocks can't reach the separate browser process. Register mocks in your test and have them applied in the application, making end-to-end tests faster and more predictable. 36 — 5 — 3 1.4 0.3 MIT 11 months ago
View on GitHub
elcobvg/laravel-opcache 0.76 A Laravel package for monitoring and managing PHP OPcache. It provides a status dashboard and Artisan commands to clear, reset, and optimize OPcache, helping keep cached PHP scripts fresh after deployments. 43 43 12 24K 4 1.7 38.9 MIT —
View on GitHub
laminas/laminas-cache-storage-adapter-test 0.76 Test adapter for laminas-cache storage, providing utilities for testing cache implementations. Useful in CI and unit tests to verify behavior of cache adapters and storage plugins within Laminas applications. 1 1 10 760 2 14.3 39.3 BSD-3-Clause 7 months ago
View on GitHub
iprodev/php-easycache 0.76 A lightweight, easy-to-use caching library for PHP that simplifies storing and retrieving cached data through a clean API. Ideal for small projects needing straightforward caching without extra complexity, with Composer installation and minimal setup. 11 11 3 2 0 2.3 1.3 MIT 11 months ago
View on GitHub
foxws/laravel-modelcache 0.76 Cache Eloquent model queries and results with a simple, fluent API for Laravel. Reduce database load by storing frequently accessed model data in your cache store, with automatic invalidation on updates. Lightweight, easy to configure, and works with any Laravel cache driver. 2 2 0 2K 0 18.9 43.8 MIT 3 weeks ago
View on GitHub
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console