PHPackages                             mxc-commons/znd-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/znd-servicemanager

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

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

zend-servicemanager 3.2 refactored for much better performance.

1.0(7y ago)06BSD-3-ClausePHPPHP ^7.1

Since Feb 16Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (8)Versions (15)Used By (0)

znd-servicemanager
==================

[](#znd-servicemanager)

master: [![Build Status](https://camo.githubusercontent.com/75c0c2f2df8d2724082a1925826fc23ce362b34cdf14bbfd6e9a4ce7cddd9bd2/68747470733a2f2f7472617669732d63692e6f72672f6d78632d636f6d6d6f6e732f7a6e642d736572766963656d616e616765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mxc-commons/znd-servicemanager)[![Coverage Status](https://camo.githubusercontent.com/f13c54dd53c4af94f4476fe4d2a320497ad4ef5152e85b74f3166c51f6c21de8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d78632d636f6d6d6f6e732f7a6e642d736572766963656d616e616765722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/mxc-commons/znd-servicemanager?branch=master)develop: [![Build Status](https://camo.githubusercontent.com/a903ab52586032c47130e959b830ab70ac83ff367a590ce8dbe0dca270d9230f/68747470733a2f2f7472617669732d63692e6f72672f6d78632d636f6d6d6f6e732f7a6e642d736572766963656d616e616765722e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/mxc-commons/znd-servicemanager)[![Coverage Status](https://camo.githubusercontent.com/f695ab26ee3ad8bb1565951b03313e01a8b221c615b6d66077d45b2cc164e04b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d78632d636f6d6d6f6e732f7a6e642d736572766963656d616e616765722f62616467652e7376673f6272616e63683d646576656c6f70)](https://coveralls.io/github/mxc-commons/znd-servicemanager?branch=develop)

Version
-------

[](#version)

Release 1.0 created on 2018-11-26 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)

znd-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 znd-servicemanager we refactored several parts of zend-servicemanager for better performance. This includes configuration and setup, factory caching and service resolution.

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

- [File issues, ask and discuss at the issues section of znd-servicemanager](https://github.com/mxc-commons/znd-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
- Comprehensive benchmark suite

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

[](#installation)

To install znd-servicemanager:

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

    ```
    "require": {
        "mxc-commons/znd-servicemanager": "^1.0"
    }
    ```
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 znd-servicemanager. znd-servicemanager instances get created by `new Zend\ServiceManager\ServiceManager` as before.

License
-------

[](#license)

znd-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/znd-servicemanager](https://github.com/mxc-commons/znd-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

29

↑

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity66

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 ~21 days

Recently: every ~65 days

Total

14

Last Release

2724d 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 (288 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

PSR-11dependency-injectiondidicservicemanagerservice-managerZendFrameworkzfservicesmxc-commonsservicemanager-component

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/mxc-commons-znd-servicemanager/health.svg)](https://phpackages.com/packages/mxc-commons-znd-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)
