PHPackages                             magium/mcm-redis-factory - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. magium/mcm-redis-factory

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

magium/mcm-redis-factory
========================

A simple factory for creating Redis objects using the Magium Configuration Manager

1.2.0(9y ago)0211Apache-2.0PHP

Since Feb 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/magium/mcm-redis-factory)[ Packagist](https://packagist.org/packages/magium/mcm-redis-factory)[ RSS](/packages/magium-mcm-redis-factory/feed)WikiDiscussions master Synced yesterday

READMEChangelog (9)Dependencies (1)Versions (10)Used By (0)

MCM Redis Factory
=================

[](#mcm-redis-factory)

This is a simple library that allows you to configure a Redis adapter using the [Magium Configuration Manager](https://github.com/magium/configuration-manager).

Setup
-----

[](#setup)

Using it is really easy.

First install via composer

```
composer require magium/redis-factory

```

Then wire your application to use MCM.

```
$factory = new \Magium\Configuration\MagiumConfigurationFactory();
$config = $factory->getManager()->getConfiguration(getenv('ENVIRONMENT'));

$redis = \Magium\RedisFactory\Factory::factory($config);

```

To Change Settings
------------------

[](#to-change-settings)

Use the MCM configuration manager to change settings. For example, if you are going to use the CLI to make changes you have the following options:

```
[kschroeder@dev ~]$ vendor/configuration-manager magium:configuration:list-keys
Valid configuration keys
magium/redis/host (default: localhost)
        (Hostname for the redis machine)

magium/redis/port (default: 6379)
        (Port for the server)

magium/redis/timeout (default: 2.5)
        (Connection timeout)

magium/redis/persistent (default: off)
        (Should the connection use a persistent connection?)

magium/redis/database
        (The default database number for the connection)

```

If you need to change the configuration to something else:

```
[kschroeder@dev ~]$ vendor/magium-configuration magium:configuration:set magium/redis/host hostname

```

Voila! You're done. No deployment necessary.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~9 days

Recently: every ~18 days

Total

9

Last Release

3290d ago

Major Versions

0.2.3 → 1.0.02017-02-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd1cf3c696e501a5d5b6813b0aff73169fef00eec3ab5aa437e1302027ded655?d=identicon)[kschroeder](/maintainers/kschroeder)

---

Top Contributors

[![kschroeder](https://avatars.githubusercontent.com/u/237332?v=4)](https://github.com/kschroeder "kschroeder (23 commits)")

### Embed Badge

![Health badge](/badges/magium-mcm-redis-factory/health.svg)

```
[![Health](https://phpackages.com/badges/magium-mcm-redis-factory/health.svg)](https://phpackages.com/packages/magium-mcm-redis-factory)
```

###  Alternatives

[nitotm/efficient-language-detector

Fast and accurate natural language detection. Detector written in PHP. Nito-ELD, ELD.

59252.9k6](/packages/nitotm-efficient-language-detector)

PHPackages © 2026

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