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 today

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 21% 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

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15196.8k7](/packages/rapidwebltd-rw-file-cache)[yuzuru-s/redis-recommend

Wrapping Redis's sorted set APIs for specializing recommending operations.

392.9k](/packages/yuzuru-s-redis-recommend)

PHPackages © 2026

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