php-di/slim-bridge
Integrates the PHP-DI dependency injection container with Slim, letting you use autowiring, constructor injection, and PSR-11 services in Slim applications. Configure PHP-DI once and resolve controllers, middleware, and dependencies automatically.
Adopt when:
Look elsewhere when:
For executives: This is a small, free, MIT-licensed integration that lets our Slim-based services use a proven dependency-injection container instead of custom code. It lowers maintenance cost, improves code quality and testability, and speeds up delivery of new API features—without a platform migration or licensing spend. The main caveat is that it is community-maintained, so we should assign internal ownership; risk is low and contained.
For engineering: Standardize on PHP-DI via this bridge for Slim services. You get PSR-11 compliance, constructor injection, cleaner separation of concerns, and easier mocking in tests. It is actively released and aligns with the broader PHP ecosystem, so third-party libraries expecting a standard container integrate cleanly. Adoption is incremental—start with one service, validate, then roll out as the default pattern.
How can I help you explore Laravel packages today?