PHPackages                             mxc-commons/mxc-servicemanager - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. mxc-commons/mxc-servicemanager

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

mxc-commons/mxc-servicemanager
==============================

Zend ServiceManager 3.2 refactored for much better performance.

1.1.0(7y ago)03511BSD-3-ClausePHPPHP ^7.1CI failing

Since Feb 16Pushed 5y ago2 watchersCompare

[ Source](https://github.com/mxc-commons/mxc-servicemanager)[ Packagist](https://packagist.org/packages/mxc-commons/mxc-servicemanager)[ RSS](/packages/mxc-commons-mxc-servicemanager/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (8)Versions (18)Used By (1)

mxc-servicemanager
==================

[](#mxc-servicemanager)

master: [![Build Status](https://camo.githubusercontent.com/52564d93aa1098536be8f329a9005bd9a09f45f0f62a280581bd5ef1b5d03659/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6d78632d636f6d6d6f6e732f6d78632d736572766963656d616e616765722e7376673f6272616e63683d6d6173746572)](https://secure.travis-ci.org/mxc-commons/mxc-servicemanager)[![Coverage Status](https://camo.githubusercontent.com/a3eb8b1152923f098f9b7367066c58905a39859610fbde226d0ddc29506a171c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d78632d636f6d6d6f6e732f6d78632d736572766963656d616e616765722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/mxc-commons/mxc-servicemanager?branch=master)develop: [![Build Status](https://camo.githubusercontent.com/bdb00f1746901d9c78f1fb8411a34d4571b618e9a0ede44dcf019db81b934698/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6d78632d636f6d6d6f6e732f6d78632d736572766963656d616e616765722e7376673f6272616e63683d646576656c6f70)](https://secure.travis-ci.org/mxc-commons/mxc-servicemanager)[![Coverage Status](https://camo.githubusercontent.com/2026062d815dbe3cba45ca6332c0c2c85aefcea25149b5989bdcd10f73e164be/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d78632d636f6d6d6f6e732f6d78632d736572766963656d616e616765722f62616467652e7376673f6272616e63683d646576656c6f70)](https://coveralls.io/github/mxc-commons/mxc-servicemanager?branch=develop)

Version
-------

[](#version)

Release 1.1 created on 2018-12-10 by Frank Hein, maxence operations GmbH, Germany.

This version is based on Zend Service Manager 3.x and is backwards compatible with it.

Introduction
------------

[](#introduction)

mxc-servicemanager is a component compatible to [zend-servicemanager 3.x](https://github.com/zendframework/zend-servicemanager "zend-servicemanager"). It can be used to substitute zend-servicemanager 3.x versions. Different from zend-servicemanager this component does not support PHP 5.6.

For mxc-servicemanager we refactored several parts of zend-servicemanager for better performance. This includes configuration and setup, factory caching and service resolution.

mxc-servicemanager will be kept compatible to zend-servicemanager. Changes to master and develop branches of zend-servicemanager will get merged into mxc-servicemanager as appropriate and applicable.

- [File issues, ask and discuss at the issues section of mxc-servicemanager](https://github.com/mxc-commons/mxc-servicemanager/issues)
- [Online documentation of zend-servicemanager](https://docs.zendframework.com/zend-servicemanager)

Features
--------

[](#features)

- Speed up service manager configuration via configure()
- Speed up service manager configuration via the APIs:
    - addAbstractFactory
    - addDelegator
    - addInitializer
    - mapLazyService
    - setAlias
    - setFactory
    - setInvokableClass
    - setService
    - setShared
- Speed up service delivery for
    - aliases
    - delegators
    - invokables
    - abstract factories
- Speed up service manager assets
    - ConfigAbstractFactory
- Simplified configuration for common cases
- Comprehensive benchmark suite

Installation
------------

[](#installation)

To install mxc-servicemanager:

1. Remove dependencies to zend-servicemanager from your project.
2. Add a dependency to mxc-servicemanager to your composer.json

    ```
    "require": {
        "mxc-commons/mxc-servicemanager": "^1.1"
    }
    ```
3. Configure PSR-4 compliant autoloading of the namespace Zend\\ServiceManager. If you use the recommended way of composer based autoloading, add this configuration to your composer.json

    ```
    "autoload": {
        "psr-4": {
            "Zend\\ServiceManager\\": "src/"
        }
    },
    ```
4. Run composer update

Now you can use Zend\\ServiceManager the way you are used to use it. zend-servicemanager is transparently replaced by mxc-servicemanager. mxc-servicemanager instances get created by `new Zend\ServiceManager\ServiceManager` as before.

License
-------

[](#license)

mxc-servicemanager is provided under the New BSD License. See [`LICENSE.md`](LICENSE.md).

Discussion
----------

[](#discussion)

Platform for discussion of all things related to this fork is the [issues section of mxc-commons/mxc-servicemanager](https://github.com/mxc-commons/mxc-servicemanager/issues).

Status
------

[](#status)

Please refer to the [`CHANGELOG.md`](CHANGELOG.md) for a list of changes and enhancements. A comprehensive benchmark comparison is included for each version. A brief description of the benchmark tests is provided in [`BENCHMARKS.md`](BENCHMARKS.md).

Credits
-------

[](#credits)

This work is based on [zend-servicemanager](https://github.com/zendframework/zend-servicemanager), which is part of the [Zend Framework](https://github.com/zendframework/zendframework). This work would not have been possible without the work of Matthew Weier O'Phinney (@weierophinney) and the numerous people contributing to Zend Framework.

Unit tests are done using [Sebastian Bergmann's PHPUnit](https://github.com/sebastianbergmann/phpunit) unit testing framework (@sebastianbergmann).

Benchmarks are done using [Daniel Leech's PHPBench](https://github.com/phpbench/phpbench) benchmark framework (@dantleech).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 67.5% 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 ~19 days

Recently: every ~68 days

Total

16

Last Release

2710d ago

Major Versions

0.9.0 → 1.02018-11-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/297f0bfaa8fe520a22536c60fcf8d8fe3ab2cff4cf0429b4507fbee3c3a0968c?d=identicon)[mxc-commons](/maintainers/mxc-commons)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (4724 commits)")[![Maks3w](https://avatars.githubusercontent.com/u/1301698?v=4)](https://github.com/Maks3w "Maks3w (605 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (524 commits)")[![fhein](https://avatars.githubusercontent.com/u/4722654?v=4)](https://github.com/fhein "fhein (291 commits)")[![EvanDotPro](https://avatars.githubusercontent.com/u/5607?v=4)](https://github.com/EvanDotPro "EvanDotPro (182 commits)")[![akrabat](https://avatars.githubusercontent.com/u/33135?v=4)](https://github.com/akrabat "akrabat (122 commits)")[![ezimuel](https://avatars.githubusercontent.com/u/475967?v=4)](https://github.com/ezimuel "ezimuel (101 commits)")[![ralphschindler](https://avatars.githubusercontent.com/u/76674?v=4)](https://github.com/ralphschindler "ralphschindler (35 commits)")[![bakura10](https://avatars.githubusercontent.com/u/1198915?v=4)](https://github.com/bakura10 "bakura10 (35 commits)")[![marc-mabe](https://avatars.githubusercontent.com/u/302689?v=4)](https://github.com/marc-mabe "marc-mabe (34 commits)")[![sgehrig](https://avatars.githubusercontent.com/u/43394?v=4)](https://github.com/sgehrig "sgehrig (33 commits)")[![GeeH](https://avatars.githubusercontent.com/u/613376?v=4)](https://github.com/GeeH "GeeH (31 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (28 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (27 commits)")[![mwillbanks](https://avatars.githubusercontent.com/u/38209?v=4)](https://github.com/mwillbanks "mwillbanks (26 commits)")[![Freeaqingme](https://avatars.githubusercontent.com/u/33034?v=4)](https://github.com/Freeaqingme "Freeaqingme (24 commits)")[![DASPRiD](https://avatars.githubusercontent.com/u/233300?v=4)](https://github.com/DASPRiD "DASPRiD (23 commits)")[![mxc-commons](https://avatars.githubusercontent.com/u/5009831?v=4)](https://github.com/mxc-commons "mxc-commons (23 commits)")[![kokx](https://avatars.githubusercontent.com/u/138556?v=4)](https://github.com/kokx "kokx (19 commits)")[![kokspflanze](https://avatars.githubusercontent.com/u/1885435?v=4)](https://github.com/kokspflanze "kokspflanze (17 commits)")

---

Tags

benchmarkcomparison-benchmarksmxc-servicemanagerperformancephprefactoredreplacementservicemanager-componentzend-frameworkzend-servicemanagerPSR-11dependency-injectiondidicservicemanagerservice-managerZendFrameworkzfservicesmxc-commonsservicemanager-component

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mxc-commons-mxc-servicemanager/health.svg)

```
[![Health](https://phpackages.com/badges/mxc-commons-mxc-servicemanager/health.svg)](https://phpackages.com/packages/mxc-commons-mxc-servicemanager)
```

###  Alternatives

[laminas/laminas-servicemanager

Factory-Driven Dependency Injection Container

15955.1M694](/packages/laminas-laminas-servicemanager)[php-di/php-di

The dependency injection container for humans

2.8k48.9M994](/packages/php-di-php-di)[elie29/zend-phpdi-config

PSR-11 PHP-DI autowire container configurator for Laminas, Mezzio, ZF2, ZF3 and Zend Expressive applications

20238.6k7](/packages/elie29-zend-phpdi-config)[slince/di

A flexible dependency injection container

20260.4k6](/packages/slince-di)[woohoolabs/zen

Woohoo Labs. Zen DI Container and preload file generator

986.2k](/packages/woohoolabs-zen)

PHPackages © 2026

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