PHPackages                             mohit-mingh/zf2booster - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. mohit-mingh/zf2booster

ActiveLibrary[Caching](/categories/caching)

mohit-mingh/zf2booster
======================

This is a simple module to setup 2 different Caching mechanizm in ZF2 to speed up the performance of your website.

5402[1 issues](https://github.com/Mohit-Singh/ZF2Booster/issues)PHP

Since Oct 14Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Mohit-Singh/ZF2Booster)[ Packagist](https://packagist.org/packages/mohit-mingh/zf2booster)[ RSS](/packages/mohit-mingh-zf2booster/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

ZF2Booster
==========

[](#zf2booster)

This is a simple module to setup 2 different Caching mechanizm in ZF2 to speed up the performance of your website.

First : filesystem

for this create a folder cache.

```

> mkdir data/cache

```

Now give permission 0777 to cache folder.

```

> sudo chmod -R 0777 data/cache

```

Now you can use filesystem cache in your system.

Settings of filesystem cache:

```
//ZF2Booster/config/booster.config.php

'fileCache' => array(
                    'cache_dir' => './data/cache',
                    'namespace' => 'systemCache',
                    'dir_level' => 2,
                    'filePermission' => 0666,
                    'dirPermission' => 0755
                    ),
```

These are the default filesystem cache settings.

Use:

```
//ZF2Booster/src/ZF2Booster/Controller/ZF2BoosterController.php

// store item in filesystem cache
        $this->getServiceLocator()->get('Zend\Cache\Storage\Filesystem')->setItem('foo', 'taxi');

```

This is how you can store items in the filesystem cache.

```
//ZF2Booster/src/ZF2Booster/Controller/ZF2BoosterController.php

 // get item from filesystem cache
        echo 'Cached Item is:- '.$this->getServiceLocator()->get('Zend\Cache\Storage\Filesystem')->getItem('foo');

```

This how you can get the items.

Second: memcached

This is a distributed memory object caching system

to use this cache you have to install PHP ext/memcached extension.

```

> sudo apt-get update
> sudo apt-get install memcached
> sudo apt-get install php5-memcache
> sudo apt-get install php5-memcached

```

That's it now you can use memcached

Settings:

```
//ZF2Booster/config/booster.config.php

    'memcached' => array(
    	           'lifetime' => 7200,
                    'options' => array(
                                'servers'   => array(
                                    array(
                                        '127.0.0.1',11211 // For me my localhost is my memcached server.
                                    )
                                ),
                                'namespace'  => 'SystemMemCache',
                                'liboptions' => array (
                                    'COMPRESSION' => true,
                                    'binary_protocol' => true,
                                    'no_block' => true,
                                    'connect_timeout' => 100
                                )
                            )
```

These are the default settings for memcached

Use:

```
//ZF2Booster/src/ZF2Booster/Controller/ZF2BoosterController.php

// store item in memcached cache
        $this->getServiceLocator()->get('Zend\Cache\Storage\Memcached')->setItem('foo', 'taxi');

```

This is how you can store items in the memcached.

```
//ZF2Booster/src/ZF2Booster/Controller/ZF2BoosterController.php

 // get item from memcached cache
        echo 'Cached Item is:- '.$this->getServiceLocator()->get('Zend\Cache\Storage\Memcached')->getItem('foo');

```

This how you can get the items.

Final note:-

I have created these two cache service so that you can use them throught the application. for more information visit

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3784341?v=4)[Mohit K.Singh](/maintainers/Mohit-Singh)[@Mohit-Singh](https://github.com/Mohit-Singh)

---

Top Contributors

[![Mohit-Singh](https://avatars.githubusercontent.com/u/3784341?v=4)](https://github.com/Mohit-Singh "Mohit-Singh (19 commits)")

### Embed Badge

![Health badge](/badges/mohit-mingh-zf2booster/health.svg)

```
[![Health](https://phpackages.com/badges/mohit-mingh-zf2booster/health.svg)](https://phpackages.com/packages/mohit-mingh-zf2booster)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
