PHPackages                             mauretto78/in-memory-list-bundle - 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. mauretto78/in-memory-list-bundle

ActiveSymfony-bundle[Caching](/categories/caching)

mauretto78/in-memory-list-bundle
================================

PHP Bundle

v1.0.11(7y ago)037MITPHP

Since Jun 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mauretto78/in-memory-list-bundle)[ Packagist](https://packagist.org/packages/mauretto78/in-memory-list-bundle)[ Docs](https://github.com/mauretto78/in-memory-list-bundle)[ RSS](/packages/mauretto78-in-memory-list-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (9)Dependencies (8)Versions (11)Used By (0)

In-Memory List Bundle
=====================

[](#in-memory-list-bundle)

[![SensioLabsInsight](https://camo.githubusercontent.com/6e2c4727b1a9c9f105c0ceb347232bf5ad05fda7030b7520b6786652ac49cb49/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f36656639656563342d383966332d343064362d613966362d6330623139323537366238632f6d696e692e706e67)](https://insight.sensiolabs.com/projects/6ef9eec4-89f3-40d6-a9f6-c0b192576b8c)[![Codacy Badge](https://camo.githubusercontent.com/63075a7319f3710288f05d0712b3b7b1c3e46c5e292db428fea35c5a676b3469/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3030373662613562666166653463656538376630376230386163626430303939)](https://www.codacy.com/app/mauretto78/in-memory-list-bundle?utm_source=github.com&utm_medium=referral&utm_content=mauretto78/in-memory-list-bundle&utm_campaign=Badge_Grade)![license](https://camo.githubusercontent.com/f622764efb3e5cd876b18cd3f578048a16e4a303cdc4edff614f90a1eea21641/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6175726574746f37382f696e2d6d656d6f72792d6c6973742d62756e646c652e737667)![Packagist](https://camo.githubusercontent.com/80158fb342c16a2214a6163f0b87e5a9c9d6c81e3fdd788745919a12eab8b4a7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6175726574746f37382f696e2d6d656d6f72792d6c6973742d62756e646c652e737667)

This is the official Symfony bundle for [In-Memory List package](https://github.com/mauretto78/in-memory-list).

Install Guide
-------------

[](#install-guide)

#### Step 1: Include In-Memory List Bundle in your project with composer:

[](#step-1-include-in-memory-list-bundle-in-your-project-with-composer)

```
composer require mauretto78/in-memory-list-bundle
```

#### Step 2: Setup your config.yml to configure your driver and connection parameters

[](#step-2-setup-your-configyml-to-configure-your-driver-and-connection-parameters)

Here is an example:

```
# In Memory List
in_memory_list:
    driver: 'redis'
    parameters:
        scheme: 'tcp'
        host: '127.0.0.1'
        port: '6379'
        options:
          profile: '3.2'
```

Please refer to [In-Memory List page](https://github.com/mauretto78/in-memory-list) for more details.

#### Step 3: Setup your AppKernel.php by adding the InMemoryList Bundle

[](#step-3-setup-your-appkernelphp-by-adding-the-inmemorylist-bundle)

```
// ..
$bundles[] = new InMemoryList\Bundle\InMemoryListBundle();
```

#### Step 4: Setup yor routing\_dev.yml

[](#step-4-setup-yor-routing_devyml)

Add these lines at the bottom of your `routing_dev.yml` file:

```
_inmemorylist:
    resource: '@InMemoryListBundle/Resources/config/routing.yml'
```

Usage Guide
-----------

[](#usage-guide)

Caching data in your controller:

```
public function indexAction(Request $request)
{
    $simpleArray = json_encode([
        [
            'userId' => 1,
            'id' => 1,
            'title' => 'sunt aut facere repellat provident occaecati excepturi optio reprehenderit',
            'body' => "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto",
        ],
        [
            'userId' => 1,
            'id' => 2,
            'title' => 'qui est esse',
            'body' => "est rerum tempore vitae\nsequi sint nihil reprehenderit dolor beatae ea dolores neque\nfugiat blanditiis voluptate porro vel nihil molestiae ut reiciendis\nqui aperiam non debitis possimus qui neque nisi nulla",
        ],
    ]);

    /** @var Cache $cache */
    $cache = $this->container->get('in_memory_list');
    $cachedList = $cache->getClient()->create(json_decode($simpleArray), ['uuid' => 'simple-list', 'ttl' => 1000]);

    // replace this example code with whatever you need
    return $this->render('default/index.html.twig', [
        'cachedList' => $cachedList,
        'base_dir' => realpath($this->getParameter('kernel.project_dir')).DIRECTORY_SEPARATOR,
    ]);
}
```

Now you can loop data in your twig files:

```
{% for item in cachedList %}
    {{ item.userId }}
    {{ item.id }}
    {{ item.title }}
    {{ item.body }}
{% endfor %}
```

Symfony Profiler
----------------

[](#symfony-profiler)

You can manage cached lists through the Symfony Profiler:

[![Symfony Profiler](https://github.com/mauretto78/in-memory-list-bundle/raw/master/Resources/views/data_collector/assets/img/profiler.jpg)](https://github.com/mauretto78/in-memory-list-bundle/blob/master/Resources/views/data_collector/assets/img/profiler.jpg)

Support
-------

[](#support)

If you found an issue or had an idea please refer [to this section](https://github.com/mauretto78/in-memory-list-bundle/issues).

Authors
-------

[](#authors)

- **Mauro Cassani** - [github](https://github.com/mauretto78)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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.

###  Release Activity

Cadence

Every ~79 days

Recently: every ~169 days

Total

10

Last Release

2597d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a9a5d92c7a88371bdc4b5f7fb7ff9c4fe890289b970d53486ca455700614df7?d=identicon)[mauretto78](/maintainers/mauretto78)

---

Top Contributors

[![bigfoot90](https://avatars.githubusercontent.com/u/4598274?v=4)](https://github.com/bigfoot90 "bigfoot90 (1 commits)")[![mauretto78](https://avatars.githubusercontent.com/u/10035321?v=4)](https://github.com/mauretto78 "mauretto78 (1 commits)")

---

Tags

cachememcachedphpphp-libraryredissymfony-bundlephpsymfonybundlerediscachelistmemcachedapcuIn Memory

### Embed Badge

![Health badge](/badges/mauretto78-in-memory-list-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mauretto78-in-memory-list-bundle/health.svg)](https://phpackages.com/packages/mauretto78-in-memory-list-bundle)
```

###  Alternatives

[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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