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
Memcachebundle

Memcachebundle Laravel Package

tarjei/memcachebundle

A Symfony bundle that integrates the PHP Memcache extension, exposing configured Memcache clients as services so you can cache data and manage sessions in Symfony applications with simple server configuration.

View on GitHub
Deep Wiki
Context7

A Memcached service for Symfony

Frequently asked questions about Memcachebundle
Can I use tarjei/memcachebundle in a Laravel application?
No. tarjei/memcachebundle is a Symfony bundle that ships a Symfony DI extension, service definitions, and a configuration tree; it has no Laravel service provider, facade, publishable config, or container binding. Laravel already includes a supported memcached cache driver via Illuminate\Cache\MemcachedStore and MemcachedConnector. Consuming the bundle would require importing Symfony DI/Config components or forking its service definitions, and even then it adds nothing over new \Memcached().
How do I install tarjei/memcachebundle with Composer?
Historically you installed it with Composer and registered the bundle in a Symfony AppKernel, following Symfony 2.x conventions. The package is archived and unmaintained, so its php and symfony/* constraints are unlikely to be validated against modern PHP 8.x or Composer 2. Check composer.json before attempting anything, but do not adopt it for new projects.
What does tarjei/memcachebundle actually do?
It integrates the PHP Memcache extension into Symfony by exposing configured Memcache clients as services. That lets Symfony applications cache data and manage sessions with simple server configuration. Architecturally it is a thin, opinionated wrapper over a first-party PHP extension client API, with no Laravel integration.
Is tarjei/memcachebundle maintained or safe for production?
It is archived and unmaintained, with no security patches, no PHP version bumps, and no ext-memcached compatibility updates. Any vulnerability in its dependency chain becomes your incident, and its Symfony 2.x-era code is unlikely to pass modern PSR-4, PSR-12, PHP 8.x, or Composer 2 validation. Technical risk is high and largely non-mitigable, so do not adopt it for new production work.
What is the Laravel equivalent of this Symfony Memcached bundle?
Laravel's native memcached cache driver is the direct equivalent and is already supported. Configure it in config/cache.php, set CACHE_DRIVER=memcached, and use the Cache facade for access. It requires zero new dependencies and works with Laravel's repository abstraction for testability.
How do I configure Memcached servers in Laravel instead of using this bundle?
In config/cache.php, define a memcached store and list your servers with host and port values, then set CACHE_DRIVER=memcached in your .env file. Laravel handles client wiring through MemcachedConnector, and you can pass supported options such as persistent_id or SASL settings in the store's options array. This replaces the bundle's Symfony configuration tree entirely.
Does tarjei/memcachebundle support Laravel 10 or Laravel 11?
No. The bundle predates modern Laravel and targets Symfony 2.x conventions such as XML/YAML service definitions and AppKernel registration, so it has no Laravel service provider or container binding. Laravel 10 and 11 rely on the framework's native memcached driver. There is no evidence that the bundle's Composer constraints have been verified against current PHP or ext-memcached versions.
How should I test Memcached caching in a Laravel app?
Use Laravel's cache repository abstraction and Cache::fake() or the array driver in unit tests so you do not need a live Memcached server. For integration tests, point the memcached store at a dedicated test instance and flush it between tests. Avoid coupling tests to the Symfony bundle's service container, which has no analogue in Laravel.
What are alternatives to tarjei/memcachebundle for Symfony or Laravel?
For Symfony, use symfony/cache's MemcachedAdapter or the framework's cache.adapter.memcached, both actively maintained and compatible with current Symfony versions. For Laravel, use the built-in memcached cache driver configured in config/cache.php. The bundle was superseded by framework-native support and has no successor package.
I already use tarjei/memcachebundle in a legacy Symfony app, what should I do?
Treat this as a decommissioning exercise rather than an integration project. Fork and vendor the bundle under your own namespace, freeze it, and put a replacement with symfony/cache's MemcachedAdapter on the roadmap with a dated sunset. Do not extend it or add features, and verify its php and ext-memcached constraints immediately.
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.
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
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource