pugx/godfather
PUGX Godfather is a lightweight PHP library that generates stub classes implementing any interface at runtime, so you can quickly create test doubles and fake dependencies without boilerplate or a full mocking framework. Ideal for unit testing legacy code.
pugx/godfather as a reference implementation of the Strategy pattern, not a strategic dependency. For new product work, the better decision is usually to build a small internal strategy registry in modern PHP/Symfony rather than adopt a 2014-era package.pugx/godfather is a small MIT-licensed Strategy-pattern helper for PHP/Symfony2. It can make interchangeable business algorithms — such as pricing, shipping, or routing rules — easier to plug into an application. However, it was last released in 2014, has very low adoption, and targets Symfony2, so it is not a safe dependency for new product investment. The recommended pitch is: we will use the architectural pattern, not the package — implement a lightweight internal strategy registry in our current stack, keep selection rules testable and observable, and avoid locking the roadmap to an unmaintained library. Revisit the package only for a constrained legacy Symfony2 maintenance effort, with a clear fork-and-own plan.
How can I help you explore Laravel packages today?