#697·workerman

PSR-11 dependency injection containers compatibility with Workerman workers

Author: raghuveerCreated Dec 21, 2021Updated Mar 26, 2025

Hi,

I am interested to know how Workerman workers behave when we have PSR-11 dependency injection containers in the php application?

PSR-11 specification: https://www.php-fig.org/psr/psr-11/

popular containers include:

  1. Laravel container
  2. PHP-DI (https://php-di.org/) etc...

please check and share your inputs

Thank you