spiral/hmvc
HMVC support for Spiral apps, helping you structure features into self-contained modules with controllers, views, and routes. Encourages clean separation of concerns and scalable project organization for complex applications.
composer require spiral/hmvcSpiral\HMVC\Controller base class—extend it to build modular controllers with nested actions, middleware stacking, and dependency injection.src/Controller.php and src/ControllerInterface.php for core abstractions. Look at Spiral’s official framework docs or source (since this is a subtree split) for real-world examples—self-contained usage is rare.UserController invoking ProfileController internally), reducing duplication and increasing modularity.actionIndex(), actionView($id)) as routeable actions; avoid direct controller instantiation—let the framework resolve via DI.middleware() in constructor or via config—works with Spiral’s router and HTTP pipeline.spiral/framework repo for HMVC evolution.spiral/framework—debugging issues will likely require referencing the parent framework’s codebase (especially src/Controller implementations).profile_actionView) help avoid ambiguity.spiral/router + spiral/http with modern controllers instead of relying solely on HMVC if upgrading.How can I help you explore Laravel packages today?