yiisoft/factory
A flexible factory for Yii3 that creates objects from class names, definitions, or callables, resolving constructor dependencies through a PSR-11 container. Ideal for configurable services and dependency injection setups.
yiisoft/factory is a narrow object factory that resolves constructor dependencies from a PSR-11 container. Laravel already provides this through its service container (app()->make() and automatic constructor injection), so there is substantial functional overlap. The package is most defensible as a tactical adapter for PSR-11-first code, Yii interoperability, or a bounded module that must avoid Laravel-specific container APIs. It should not replace Laravel’s container as the primary DI mechanism.yiisoft/factory behind an application-owned interface or adapter so it does not leak into broad Laravel code.app()->make(), and provide examples for the bounded use case.How can I help you explore Laravel packages today?