# laminas-servicemanager

> A factory-driven dependency injection container for PHP from the Laminas Project

Source: https://talira.ai/catalog/laminas-servicemanager-cc833v26
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / dependency injection](https://talira.ai/categories/libraries/dependency-injection), [languages / php](https://talira.ai/categories/languages/php)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Supports: [PSR-11](https://talira.ai/standards/psr-11.md)[^3]
- Backed by: [Laminas Project](https://talira.ai/orgs/laminas-project.md)

laminas-servicemanager is the Laminas Project's factory-driven dependency injection container for PHP: it implements the service locator pattern, building and returning objects from factories configured for each service. Version 4 supports versions 1.1 and 2 of PSR-11's container interface, and the component offers delegators, lazy services, plugin managers, abstract factories, reflection-based and configuration-based autowiring factories, and CLI commands that generate factories and ahead-of-time factory code. It's part of the same component family as [laminas-diactoros](https://talira.ai/catalog/laminas-diactoros-j7k429m0.md).

## Links

- GitHub: https://github.com/laminas/laminas-servicemanager
- Docs: https://docs.laminas.dev/laminas-servicemanager/

## Problems it solves

- wire up dependencies in a PHP application with a container
- build objects from factories instead of creating them by hand
- use a PSR-11 container in a Laminas or Mezzio app

## Features

- factory-driven service container implementing PSR-11 (versions 1.1 and 2)
- delegators and lazy services
- plugin managers and abstract factories
- reflection-based and configuration-based autowiring factories
- CLI commands that generate factories and ahead-of-time factory code

## Trust

Overall: 0.48 out of 1.
Signals: maintenance 0.69, adoption 0.44, momentum 0.14, community 0.93, backing 0.30, extensibility 0.00.

- last commit 16 days ago
- 13 commits in the last 90 days
- latest release 3.25.0 10 days ago
- 160 GitHub stars
- 213 contributors
- accepts sponsorship (Custom)
- backed by Laminas Project

## Alternatives

- [PHP-DI](https://talira.ai/catalog/php-di-gbzc2k11.md): The dependency injection container for humans
- [Pimple](https://talira.ai/catalog/pimple-ws39w9n2.md): Small dependency injection container for PHP

## Sources

[^1]: https://docs.laminas.dev/laminas-servicemanager/ (checked 28 Nov 2026)
[^2]: https://github.com/laminas/laminas-servicemanager/blob/4.7.x/LICENSE.md (checked 28 Nov 2026)
[^3]: https://docs.laminas.dev/laminas-servicemanager/v4/psr-11/ (checked 28 Nov 2026)
